mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-01 16:37:44 -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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user