Added new security question to sign up, Added notification for unconfirmed emails
• Added: - new security question to sign up - notification for unconfirmed emails - modal for describing issue with Gab emails
This commit is contained in:
@@ -2,12 +2,14 @@ import {
|
||||
SAVE_USER_PROFILE_INFORMATION_FETCH_REQUEST,
|
||||
SAVE_USER_PROFILE_INFORMATION_FETCH_SUCCESS,
|
||||
SAVE_USER_PROFILE_INFORMATION_FETCH_FAIL,
|
||||
RESEND_USER_CONFIRMATION_EMAIL_SUCCESS,
|
||||
} from '../actions/user'
|
||||
import { Map as ImmutableMap } from 'immutable'
|
||||
|
||||
const initialState = ImmutableMap({
|
||||
isLoading: false,
|
||||
isError: false,
|
||||
emailConfirmationResends: 0,
|
||||
})
|
||||
|
||||
export default function (state = initialState, action) {
|
||||
@@ -18,6 +20,8 @@ export default function (state = initialState, action) {
|
||||
return state
|
||||
case SAVE_USER_PROFILE_INFORMATION_FETCH_FAIL:
|
||||
return state.set('isError', true)
|
||||
case RESEND_USER_CONFIRMATION_EMAIL_SUCCESS:
|
||||
return state.set('emailConfirmationResends', state.get('emailConfirmationResends') + 1)
|
||||
default:
|
||||
return state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user