фикс создания аккаунта
This commit is contained in:
+2
-1
@@ -179,7 +179,8 @@ if len(email) > 255:
|
|||||||
salt = secrets.token_bytes(32)
|
salt = secrets.token_bytes(32)
|
||||||
inner = hashlib.sha1(f"{username}:{password}".encode("utf-8")).digest()
|
inner = hashlib.sha1(f"{username}:{password}".encode("utf-8")).digest()
|
||||||
x = hashlib.sha1(salt + inner).digest()
|
x = hashlib.sha1(salt + inner).digest()
|
||||||
verifier_int = pow(G, int.from_bytes(x, "big"), N)
|
# AzerothCore SRP6 treats the SHA1 digest as a little-endian bignum.
|
||||||
|
verifier_int = pow(G, int.from_bytes(x, "little"), N)
|
||||||
verifier = verifier_int.to_bytes(32, "little")
|
verifier = verifier_int.to_bytes(32, "little")
|
||||||
|
|
||||||
email_insert = sql_quote(email)
|
email_insert = sql_quote(email)
|
||||||
|
|||||||
Reference in New Issue
Block a user