Add few more interfaces (#5063)

This commit is contained in:
Zach H 2024-06-25 01:00:45 -04:00 committed by GitHub
parent e261e16d99
commit 8687163cca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 359 additions and 90 deletions

View file

@ -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: