connect reset password to login view (#4489)

This commit is contained in:
Jeremy Letto 2021-12-07 21:57:12 -06:00 committed by GitHub
parent 811ee54c76
commit 1f15445c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 893 additions and 445 deletions

View file

@ -72,18 +72,37 @@ export const Actions = {
logs
}),
clearLogs: () => ({
type: Types.CLEAR_LOGS
type: Types.CLEAR_LOGS,
}),
registrationRequiresEmail: () => ({
type: Types.REGISTRATION_REQUIRES_EMAIL,
}),
registrationFailed: (error) => ({
type: Types.REGISTRATION_FAILED,
error
}),
registrationEmailError: (error) => ({
type: Types.REGISTRATION_EMAIL_ERROR,
error
}),
registrationPasswordError: (error) => ({
type: Types.REGISTRATION_PASSWORD_ERROR,
error
}),
registrationUserNameError: (error) => ({
type: Types.REGISTRATION_USERNAME_ERROR,
error
}),
resetPassword: () => ({
type: Types.RESET_PASSWORD_REQUESTED
type: Types.RESET_PASSWORD_REQUESTED,
}),
resetPasswordFailed: () => ({
type: Types.RESET_PASSWORD_FAILED
type: Types.RESET_PASSWORD_FAILED,
}),
resetPasswordChallenge: () => ({
type: Types.RESET_PASSWORD_CHALLENGE
type: Types.RESET_PASSWORD_CHALLENGE,
}),
resetPasswordSuccess: () => ({
type: Types.RESET_PASSWORD_SUCCESS
type: Types.RESET_PASSWORD_SUCCESS,
})
}

View file

@ -65,6 +65,21 @@ export const Dispatch = {
serverMessage: message => {
store.dispatch(Actions.serverMessage(message));
},
registrationRequiresEmail: () => {
store.dispatch(Actions.registrationRequiresEmail());
},
registrationFailed: (error) => {
store.dispatch(Actions.registrationFailed(error));
},
registrationEmailError: (error) => {
store.dispatch(Actions.registrationEmailError(error));
},
registrationPasswordError: (error) => {
store.dispatch(Actions.registrationPasswordError(error));
},
registrationUserNameError: (error) => {
store.dispatch(Actions.registrationUserNameError(error));
},
resetPassword: () => {
store.dispatch(Actions.resetPassword());
},

View file

@ -17,6 +17,11 @@ export const Types = {
USER_LEFT: '[Server] User Left',
VIEW_LOGS: '[Server] View Logs',
CLEAR_LOGS: '[Server] Clear Logs',
REGISTRATION_REQUIRES_EMAIL: '[Server] Registration Requires Email',
REGISTRATION_FAILED: '[Server] Registration Failed',
REGISTRATION_EMAIL_ERROR: '[Server] Registration Email Error',
REGISTRATION_PASSWORD_ERROR: '[Server] Registration Password Error',
REGISTRATION_USERNAME_ERROR: '[Server] Registration Username Error',
RESET_PASSWORD_REQUESTED: '[Server] Reset Password Requested',
RESET_PASSWORD_FAILED: '[Server] Reset Password Failed',
RESET_PASSWORD_CHALLENGE: '[Server] Reset Password Challenge',