mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Webatrice: support hashed passwords in register and resetPassword (#4549)
* support hashed passwords in register and resetPassword * lint * support hashedPasswords for accountActivation * use salt in post-register login step Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
92f941a54c
commit
992e28797f
3 changed files with 64 additions and 15 deletions
|
|
@ -24,3 +24,8 @@ export const generateSalt = (): string => {
|
|||
|
||||
return salt;
|
||||
}
|
||||
|
||||
export const passwordSaltSupported = (serverOptions, webClient): number => {
|
||||
// Intentional use of Bitwise operator b/c of how Servatrice Enums work
|
||||
return serverOptions & webClient.protobuf.controller.Event_ServerIdentification.ServerOptions.SupportsPasswordHash;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue