fix(ui): fix incorrect login error
This commit is contained in:
parent
2ec63b1591
commit
269ea69206
1 changed files with 1 additions and 1 deletions
|
|
@ -71,10 +71,10 @@ const reducer = (state = initialState, action = {}) => {
|
|||
return state.set('authDetails', action.data);
|
||||
case UPDATE_PASSWORD.FAILURE:
|
||||
return state.set('passwordErrors', List(action.errors))
|
||||
case FETCH_ACCOUNT.FAILURE:
|
||||
case LOGIN.FAILURE:
|
||||
deleteCookie('jwt', '/', 'openreplay.com')
|
||||
return state.set('loginRequest', { loading: false, errors: ['Invalid username or password'] });
|
||||
case FETCH_ACCOUNT.FAILURE:
|
||||
case DELETE.SUCCESS:
|
||||
case DELETE.FAILURE:
|
||||
deleteCookie('jwt', '/', 'openreplay.com')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue