154. Test register (#20)
This commit is contained in:
@ -28,8 +28,6 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
if (this.authenticationService.isUserLoggedIn()) {
|
||||
this.router.navigateByUrl("/user/management");
|
||||
this.notificationService.notify(NotificationType.INFO, "You are already logged in");
|
||||
} else {
|
||||
// this.router.navigateByUrl("/login");
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,7 +47,6 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
this.showLoading = false;
|
||||
},
|
||||
(errorResponse: HttpErrorResponse) => {
|
||||
console.log(errorResponse);
|
||||
this.sendErrorNotification(errorResponse.error.message);
|
||||
this.showLoading = false;
|
||||
}
|
||||
|
||||
@ -41,7 +41,6 @@ export class RegisterComponent implements OnInit, OnDestroy {
|
||||
this.showLoading = false;
|
||||
},
|
||||
(errorResponse: HttpErrorResponse) => {
|
||||
console.log(errorResponse);
|
||||
this.sendErrorNotification(errorResponse.error.message);
|
||||
this.showLoading = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user