#15: Improve error handling during login
All checks were successful
Jenkins Production Deployment
All checks were successful
Jenkins Production Deployment
This commit is contained in:
parent
ab9c579765
commit
469c83856d
|
@ -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.');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user