mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
upgrade packages
This commit is contained in:
parent
c62c336a11
commit
ae1bc3da38
30 changed files with 1138 additions and 1783 deletions
|
|
@ -17,14 +17,14 @@ import {
|
|||
export function login(options: Omit<Enriched.LoginConnectOptions, 'password'>, password?: string, passwordSalt?: string): void {
|
||||
const { userName, hashedPassword } = options;
|
||||
|
||||
const loginConfig: MessageInitShape<typeof Data.Command_LoginSchema> = {
|
||||
const loginConfig = {
|
||||
...CLIENT_CONFIG,
|
||||
clientid: 'webatrice',
|
||||
userName,
|
||||
...(passwordSalt
|
||||
? { hashedPassword: hashedPassword || hashPassword(passwordSalt, password) }
|
||||
: { password }),
|
||||
};
|
||||
} satisfies MessageInitShape<typeof Data.Command_LoginSchema>;
|
||||
|
||||
const onLoginError = (message: string, extra?: () => void) => {
|
||||
updateStatus(App.StatusEnum.DISCONNECTED, message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue