фикс создания аккаунта

This commit is contained in:
2026-03-09 21:16:59 +04:00
parent 421b37f3e8
commit 0a301a537c
+2 -1
View File
@@ -179,7 +179,8 @@ if len(email) > 255:
salt = secrets.token_bytes(32)
inner = hashlib.sha1(f"{username}:{password}".encode("utf-8")).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")
email_insert = sql_quote(email)