IO-761 User Reset updates
This commit is contained in:
@@ -13,6 +13,7 @@ const INITIAL_STATE = {
|
||||
email: null,
|
||||
error: null,
|
||||
success: false,
|
||||
loading: false,
|
||||
},
|
||||
authLevel: 0,
|
||||
};
|
||||
@@ -33,6 +34,17 @@ const userReducer = (state = INITIAL_STATE, action) => {
|
||||
email: action.payload,
|
||||
error: null,
|
||||
success: false,
|
||||
loading: true,
|
||||
},
|
||||
};
|
||||
case UserActionTypes.SEND_PASSWORD_RESET_EMAIL_START_AGAIN:
|
||||
return {
|
||||
...state,
|
||||
passwordreset: {
|
||||
email: action.payload,
|
||||
error: null,
|
||||
success: true,
|
||||
loading: true,
|
||||
},
|
||||
};
|
||||
case UserActionTypes.VALIDATE_PASSWORD_RESET_FAILURE:
|
||||
@@ -42,7 +54,11 @@ const userReducer = (state = INITIAL_STATE, action) => {
|
||||
case UserActionTypes.SEND_PASSWORD_RESET_EMAIL_SUCCESS:
|
||||
return {
|
||||
...state,
|
||||
passwordreset: { ...state.passwordreset, success: true },
|
||||
passwordreset: {
|
||||
...state.passwordreset,
|
||||
success: true,
|
||||
loading: false,
|
||||
},
|
||||
};
|
||||
case UserActionTypes.SIGN_IN_SUCCESS:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user