diff --git a/src/app/core/auth/auth.service.ts b/src/app/core/auth/auth.service.ts index 700ed05..2bc4a1e 100644 --- a/src/app/core/auth/auth.service.ts +++ b/src/app/core/auth/auth.service.ts @@ -82,7 +82,7 @@ export class AuthService { }) ); - await this.login(username, password); + await this.router.navigate(['/login']); } logout(): void { diff --git a/src/app/pages/register-form/register-form.component.ts b/src/app/pages/register-form/register-form.component.ts index 087f3dc..91ed557 100644 --- a/src/app/pages/register-form/register-form.component.ts +++ b/src/app/pages/register-form/register-form.component.ts @@ -39,6 +39,9 @@ export class RegisterFormComponent { } async submitForm() { + console.log('form valid:', this.registerForm.valid); + console.log('form errors:', this.registerForm.errors); + console.log('form values:', this.registerForm.value); if (this.registerForm.valid) { this.isLoading = true; try {