return error status on login

This commit is contained in:
Almira Krdzic
2018-10-22 10:35:25 +02:00
parent 5570cf7f91
commit 3d6f15dd4f
2 changed files with 13 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ class HtmlClient {
case '[jwt_auth] incorrect_password':
store.dispatch(updateMessages([{ code: 'error', message: `Invalid password!` }]));
return;
case '[jwt_auth] wiaas_authentication_error':
case '[jwt_auth] wiaas_authentication_error': case 'wiaas_authentication_error':
store.dispatch( {
type: LOGOUT,
isLoggedIn: false,