🥅 Workaround for faulty argon2 hashes on aarch64 (#4780)
Ensure we can successfully verify an argon2 hash before using it. Closes #4779
This commit is contained in:
1 parent
44e38f0fcd
commit
df60defca7
3 files changed
+16
-1
No files matched your search
@@ -27,7 +27,7 @@ try:
|
||||
|
||||
# test if we can actually hash and verify, if not we won't use this backend
|
||||
hash = argon2.hash("test")
|
||||
argon2.verify("test", hash)
|
||||
assert argon2.verify("test", hash)
|
||||
|
||||
password_hashers.append(argon2)
|
||||
except Exception:
|
||||
|
||||
Reference in new issue
Block a user