Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 96dfc905f9 | |||
| baee754ee8 |
@@ -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