Commit d675e05b authored by Mark Harding's avatar Mark Harding

(fix): if error (due to potential cookie blocking), then report error

parent b2d8c141
No related merge requests found
Pipeline #74237637 canceled with stages
in 21 minutes and 21 seconds
......@@ -58,9 +58,13 @@ export class LoginForm {
this.done.next(data.user);
})
.catch((e) => {
this.inProgress = false;
if (e.status === 'failed') {
if (!e) {
this.errorMessage = 'LoginException::Unknown';
this.session.logout();
} else if (e.status === 'failed') {
//incorrect login details
this.errorMessage = 'LoginException::AuthenticationFailed';
this.session.logout();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment