mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Support Server requests for MFA, Render failed UI statuses to user, C… (#4483)
* Support Server requests for MFA, Render failed UI statuses to user, Connect to KnownHosts component
This commit is contained in:
parent
73c5956ece
commit
0683d1aced
12 changed files with 168 additions and 91 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { Type } from 'protobufjs';
|
||||
import { Types } from './server.types';
|
||||
|
||||
export const Actions = {
|
||||
|
|
@ -68,6 +69,15 @@ export const Actions = {
|
|||
type: Types.CLEAR_LOGS
|
||||
}),
|
||||
resetPassword: () => ({
|
||||
type: Types.RESET_PASSWORD
|
||||
type: Types.RESET_PASSWORD_REQUESTED
|
||||
}),
|
||||
resetPasswordFailed: () => ({
|
||||
type: Types.RESET_PASSWORD_FAILED
|
||||
}),
|
||||
resetPasswordChallenge: () => ({
|
||||
type: Types.RESET_PASSWORD_CHALLENGE
|
||||
}),
|
||||
resetPasswordSuccess: () => ({
|
||||
type: Types.RESET_PASSWORD_SUCCESS
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,5 +64,14 @@ export const Dispatch = {
|
|||
},
|
||||
resetPassword: () => {
|
||||
store.dispatch(Actions.resetPassword());
|
||||
},
|
||||
resetPasswordFailed: () => {
|
||||
store.dispatch(Actions.resetPasswordFailed());
|
||||
},
|
||||
resetPasswordChallenge: () => {
|
||||
store.dispatch(Actions.resetPasswordChallenge());
|
||||
},
|
||||
resetPasswordSuccess: () => {
|
||||
store.dispatch(Actions.resetPasswordSuccess());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,5 +16,8 @@ export const Types = {
|
|||
USER_LEFT: '[Server] User Left',
|
||||
VIEW_LOGS: '[Server] View Logs',
|
||||
CLEAR_LOGS: '[Server] Clear Logs',
|
||||
RESET_PASSWORD: '[Server] Reset Password'
|
||||
RESET_PASSWORD_REQUESTED: '[Server] Reset Password Requested',
|
||||
RESET_PASSWORD_FAILED: '[Server] Reset Password Failed',
|
||||
RESET_PASSWORD_CHALLENGE: '[Server] Reset Password Challenge',
|
||||
RESET_PASSWORD_SUCCESS: '[Server] Reset Password Success'
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue