mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Dev/jchamish/forgotpassword (#4481)
* Implementation of Forgotten Password Reset * Update webclient/src/hooks/useReduxEffect.tsx Co-authored-by: Zach H <zahalpern+github@gmail.com>
This commit is contained in:
parent
7c27e955d5
commit
73c5956ece
25 changed files with 447 additions and 7 deletions
|
|
@ -35,6 +35,8 @@ export class WebClient {
|
|||
port: '',
|
||||
user: '',
|
||||
pass: '',
|
||||
newPassword: '',
|
||||
email: '',
|
||||
clientid: null,
|
||||
reason: null,
|
||||
autojoinrooms: true,
|
||||
|
|
|
|||
|
|
@ -114,7 +114,6 @@ function removeFromList({ listName, userName }: RemoveFromListData) {
|
|||
|
||||
function serverIdentification(info: ServerIdentificationData) {
|
||||
const { serverName, serverVersion, protocolVersion, serverOptions } = info;
|
||||
|
||||
if (protocolVersion !== webClient.protocolVersion) {
|
||||
SessionCommands.updateStatus(StatusEnum.DISCONNECTED, `Protocol version mismatch: ${protocolVersion}`);
|
||||
SessionCommands.disconnect();
|
||||
|
|
|
|||
|
|
@ -86,8 +86,7 @@ export class SessionPersistence {
|
|||
}
|
||||
|
||||
static resetPassword() {
|
||||
console.log('Open Modal asking for reset token & new password');
|
||||
|
||||
ServerDispatch.resetPassword();
|
||||
}
|
||||
|
||||
static resetPasswordSuccess() {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ export interface WebSocketOptions {
|
|||
port: string;
|
||||
user: string;
|
||||
pass: string;
|
||||
newPassword: string;
|
||||
email: string;
|
||||
autojoinrooms: boolean;
|
||||
keepalive: number;
|
||||
clientid: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue