mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
More web stuff (#5055)
* Add Response.gamesOfuser * Cleanup and confirm all
This commit is contained in:
parent
f04702fdd1
commit
291c535edb
12 changed files with 71 additions and 24 deletions
|
|
@ -5,10 +5,10 @@ import webClient from '../../WebClient';
|
|||
import { SessionPersistence } from '../../persistence';
|
||||
|
||||
import {
|
||||
activateAccount,
|
||||
activate,
|
||||
disconnect,
|
||||
login,
|
||||
resetPassword,
|
||||
forgotPasswordRequest,
|
||||
updateStatus
|
||||
} from './';
|
||||
|
||||
|
|
@ -33,12 +33,12 @@ export function requestPasswordSalt(options: WebSocketConnectOptions): void {
|
|||
|
||||
switch (options.reason) {
|
||||
case WebSocketConnectReason.ACTIVATE_ACCOUNT: {
|
||||
activateAccount(options, passwordSalt);
|
||||
activate(options, passwordSalt);
|
||||
break;
|
||||
}
|
||||
|
||||
case WebSocketConnectReason.PASSWORD_RESET: {
|
||||
resetPassword(options, passwordSalt);
|
||||
forgotPasswordRequest(options, passwordSalt);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue