🥅 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:
Christopher Perrin authored and GitHub committed 2023-03-29 13:32:15 +02:00
1 parent 44e38f0fcd
commit df60defca7
3 files changed
+16 -1

No files matched your search

+1 -1
View File
@@ -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: