mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Add few more interfaces (#5063)
This commit is contained in:
parent
e261e16d99
commit
8687163cca
34 changed files with 359 additions and 90 deletions
|
|
@ -9,7 +9,7 @@ import {
|
|||
requestPasswordSalt,
|
||||
forgotPasswordChallenge,
|
||||
forgotPasswordRequest,
|
||||
resetPasswordRequest,
|
||||
forgotPasswordReset,
|
||||
updateStatus,
|
||||
} from '../../commands/session';
|
||||
import { generateSalt, passwordSaltSupported } from '../../utils';
|
||||
|
|
@ -48,7 +48,7 @@ export function serverIdentification(info: ServerIdentificationData): void {
|
|||
}
|
||||
break;
|
||||
case WebSocketConnectReason.PASSWORD_RESET_REQUEST:
|
||||
resetPasswordRequest(options);
|
||||
forgotPasswordRequest(options);
|
||||
break;
|
||||
case WebSocketConnectReason.PASSWORD_RESET_CHALLENGE:
|
||||
forgotPasswordChallenge(options);
|
||||
|
|
@ -57,7 +57,7 @@ export function serverIdentification(info: ServerIdentificationData): void {
|
|||
if (getPasswordSalt) {
|
||||
requestPasswordSalt(options);
|
||||
} else {
|
||||
forgotPasswordRequest(options);
|
||||
forgotPasswordReset(options);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue