diff --git a/src/app/pages/admin/admin.component.ts b/src/app/pages/admin/admin.component.ts index 737a12f..383c278 100644 --- a/src/app/pages/admin/admin.component.ts +++ b/src/app/pages/admin/admin.component.ts @@ -149,9 +149,13 @@ export class AdminComponent implements OnInit { this.name = user.fullName; this.isActive = user.isActive; this.getEvents(); + } else { + confirm('Login unsuccessful. Please check if you provided the correct username and password.'); } }); } + }, (error) => { + confirm('Login unsuccessful. Reported problem from server: ' + error.error.message); }); } @@ -161,7 +165,7 @@ export class AdminComponent implements OnInit { UtilsService.saveSessionInfoToLocalStorage(session.sessionId, session.sessionKey); this.isLoggedIn = true; this.getEvents(); - confirm('Please talk to Patrick to activate your account. You can\'t use this application before that.') + confirm('Please talk to Patrick to activate your account. You can\'t use this application before that.'); } }); }