diff --git a/client/coral-framework/actions/auth.js b/client/coral-framework/actions/auth.js
index bf7984579..592fe2be1 100644
--- a/client/coral-framework/actions/auth.js
+++ b/client/coral-framework/actions/auth.js
@@ -156,7 +156,7 @@ const confirmEmailFailure = () => ({type: actions.CONFIRM_EMAIL_FAILURE});
export const requestConfirmEmail = email => dispatch => {
dispatch(confirmEmailRequest());
- coralApi('/users/resend-confirm', {method: 'POST', body: {email}})
+ return coralApi('/users/resend-confirm', {method: 'POST', body: {email}})
.then(() => {
dispatch(confirmEmailSuccess());
})
diff --git a/client/coral-framework/reducers/auth.js b/client/coral-framework/reducers/auth.js
index 54ffa37a6..6cb4e97cd 100644
--- a/client/coral-framework/reducers/auth.js
+++ b/client/coral-framework/reducers/auth.js
@@ -12,6 +12,8 @@ const initialState = Map({
passwordRequestSuccess: null,
passwordRequestFailure: null,
emailConfirmationFailure: false,
+ emailConfirmationLoading: false,
+ emailConfirmationSuccess: false,
successSignUp: false
});
@@ -35,6 +37,8 @@ export default function auth (state = initialState, action) {
passwordRequestFailure: null,
passwordRequestSuccess: null,
emailConfirmationFailure: false,
+ emailConfirmationSuccess: false,
+ emailConfirmationLoading: false,
successSignUp: false
}));
case actions.CHANGE_VIEW :
@@ -104,7 +108,15 @@ export default function auth (state = initialState, action) {
.set('passwordRequestFailure', 'There was an error sending your password reset email. Please try again soon!')
.set('passwordRequestSuccess', null);
case actions.EMAIL_CONFIRM_ERROR:
- return state.set('emailConfirmationFailure', true);
+ return state
+ .set('emailConfirmationFailure', true)
+ .set('emailConfirmationLoading', false);
+ case actions.CONFIRM_EMAIL_REQUEST:
+ return state.set('emailConfirmationLoading', true);
+ case actions.CONFIRM_EMAIL_SUCCESS:
+ return state
+ .set('emailConfirmationSuccess', true)
+ .set('emailConfirmationLoading', false);
default :
return state;
}
diff --git a/client/coral-sign-in/components/SignDialog.js b/client/coral-sign-in/components/SignDialog.js
index 6243472b4..0645f110f 100644
--- a/client/coral-sign-in/components/SignDialog.js
+++ b/client/coral-sign-in/components/SignDialog.js
@@ -17,7 +17,12 @@ const SignDialog = ({open, view, handleClose, offset, ...props}) => (
}}>
×
{view === 'SIGNIN' &&