#15: Improve error handling during login
All checks were successful
Jenkins Production Deployment

This commit is contained in:
Patrick Müller 2023-08-05 18:10:29 +02:00
parent ab9c579765
commit 469c83856d
Signed by: Paddy
GPG Key ID: 37ABC11275CAABCE

View File

@ -149,9 +149,13 @@ export class AdminComponent implements OnInit {
this.name = user.fullName; this.name = user.fullName;
this.isActive = user.isActive; this.isActive = user.isActive;
this.getEvents(); 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); UtilsService.saveSessionInfoToLocalStorage(session.sessionId, session.sessionKey);
this.isLoggedIn = true; this.isLoggedIn = true;
this.getEvents(); 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.');
} }
}); });
} }