Compare commits
2 Commits
95de4cca9e
...
96dfc905f9
| Author | SHA1 | Date | |
|---|---|---|---|
| 96dfc905f9 | |||
| baee754ee8 |
@@ -82,7 +82,7 @@ export class AuthService {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
await this.login(username, password);
|
await this.router.navigate(['/login']);
|
||||||
}
|
}
|
||||||
|
|
||||||
logout(): void {
|
logout(): void {
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ export class RegisterFormComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async submitForm() {
|
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) {
|
if (this.registerForm.valid) {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user