Register terminé
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user