Register terminé

This commit is contained in:
2026-06-10 22:36:35 +02:00
parent 3e58f8026f
commit baee754ee8
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ export class AuthService {
})
);
await this.login(username, password);
await this.router.navigate(['/login']);
}
logout(): void {
@@ -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 {