first commit

This commit is contained in:
Dhanraj
2024-09-22 10:21:52 +05:30
parent 9c6c3abc32
commit bd5119fc3c
697 changed files with 112184 additions and 10841 deletions

View File

@ -26,7 +26,7 @@ export class RegisterComponent implements OnInit, OnDestroy {
ngOnInit(): void {
if (this.authenticationService.isUserLoggedIn()) {
this.router.navigateByUrl("/user/management");
this.router.navigateByUrl("/dashboard/userManagement");
this.notificationService.notify(NotificationType.INFO, "You are already logged in");
}
}
@ -39,7 +39,7 @@ export class RegisterComponent implements OnInit, OnDestroy {
.subscribe(user => {
this.notificationService.notify(NotificationType.SUCCESS, `A new account was created for ${user.firstName}.
Please check your email for password to log in`);
this.router.navigateByUrl('/login');
this.router.navigateByUrl('/dashboard/login');
this.showLoading = false;
},
(errorResponse: HttpErrorResponse) => {