mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
PR review changes
This commit is contained in:
parent
ef6cea6f6c
commit
b103db681b
35 changed files with 640 additions and 125 deletions
|
|
@ -47,7 +47,7 @@ export function login(options: ConnectTarget & LoginParams, password?: string, p
|
|||
WebClient.instance.response.session.updateBuddyList(buddyList);
|
||||
WebClient.instance.response.session.updateIgnoreList(ignoreList);
|
||||
WebClient.instance.response.session.updateUser(userInfo);
|
||||
WebClient.instance.response.session.loginSuccessful({ ...resp, hashedPassword: loginConfig.hashedPassword });
|
||||
WebClient.instance.response.session.loginSuccessful({ hashedPassword: loginConfig.hashedPassword });
|
||||
|
||||
listUsers();
|
||||
listRooms();
|
||||
|
|
@ -71,11 +71,10 @@ export function login(options: ConnectTarget & LoginParams, password?: string, p
|
|||
onLoginError('Login failed: missing client ID'),
|
||||
[Response_ResponseCode.RespContextError]: () =>
|
||||
onLoginError('Login failed: server error'),
|
||||
[Response_ResponseCode.RespAccountNotActivated]: (raw) =>
|
||||
[Response_ResponseCode.RespAccountNotActivated]: () =>
|
||||
onLoginError('Login failed: account not activated',
|
||||
() => {
|
||||
WebClient.instance.response.session.accountAwaitingActivation({
|
||||
...raw,
|
||||
host: options.host,
|
||||
port: options.port,
|
||||
userName: options.userName,
|
||||
|
|
|
|||
|
|
@ -45,10 +45,9 @@ export function register(options: ConnectTarget & RegisterParams, password?: str
|
|||
}, password, passwordSalt);
|
||||
WebClient.instance.response.session.registrationSuccess();
|
||||
},
|
||||
[Response_ResponseCode.RespRegistrationAcceptedNeedsActivation]: (raw) => {
|
||||
[Response_ResponseCode.RespRegistrationAcceptedNeedsActivation]: () => {
|
||||
updateStatus(StatusEnum.DISCONNECTED, 'Registration accepted, awaiting activation');
|
||||
WebClient.instance.response.session.accountAwaitingActivation({
|
||||
...raw,
|
||||
host: options.host,
|
||||
port: options.port,
|
||||
userName: options.userName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue