From 1b93325fcc2071a0247a5f2c5701fc6ab2759797 Mon Sep 17 00:00:00 2001 From: Art Date: Mon, 20 Sep 2021 14:57:20 +0300 Subject: [PATCH] 154. Test register (#20) --- .../src/app/component/login/login.component.ts | 3 --- .../src/app/component/register/register.component.ts | 1 - 2 files changed, 4 deletions(-) diff --git a/support-portal-frontend/src/app/component/login/login.component.ts b/support-portal-frontend/src/app/component/login/login.component.ts index 669fbc9..64d4df6 100644 --- a/support-portal-frontend/src/app/component/login/login.component.ts +++ b/support-portal-frontend/src/app/component/login/login.component.ts @@ -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; } diff --git a/support-portal-frontend/src/app/component/register/register.component.ts b/support-portal-frontend/src/app/component/register/register.component.ts index 5d1380f..cc6711c 100644 --- a/support-portal-frontend/src/app/component/register/register.component.ts +++ b/support-portal-frontend/src/app/component/register/register.component.ts @@ -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; }