This commit is contained in:
2023-08-03 08:58:53 +03:00
parent c82f8e3537
commit ad31d3ffce
30 changed files with 697 additions and 24 deletions
@@ -44,7 +44,7 @@ export class ForgotPasswordComponent implements OnInit {
if (this.authForm.invalid) {
return;
} else {
this.router.navigate(['/dashboard/main']);
this.router.navigate(['/dashboard']);
}
}
}
@@ -51,7 +51,7 @@ implements OnInit {
this.authService.isAuthenticated$.subscribe(isAuthenticated => {
if (isAuthenticated) {
this.router.navigate([this.getRedirect() || '/dashboard/dashboard']);
this.router.navigate([this.getRedirect() || '/dashboard']);
}
});
}
@@ -46,7 +46,7 @@ export class SignupComponent implements OnInit {
if (this.authForm.invalid) {
return;
}
//this.router.navigate(['/admin/dashboard/main']);
this.authService.register({
username: this.authForm.get('email')!.value!,
password: this.authForm.get('password')!.value!,