154. Test register (#20)

This commit is contained in:
Art
2021-09-20 14:57:20 +03:00
parent 1c704ba9f1
commit 1b93325fcc
2 changed files with 0 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}