mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
connect reset password to login view (#4489)
This commit is contained in:
parent
811ee54c76
commit
1f15445c69
31 changed files with 893 additions and 445 deletions
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue