Skip to content
Snippets Groups Projects
Commit 7dac0361 authored by ale's avatar ale
Browse files

Catch VerifyException

parent 8a04ca8a
Branches
No related tags found
No related merge requests found
Pipeline #88418 failed
......@@ -27,6 +27,6 @@ def checkpw(password, encrypted_password):
try:
return argon2.PasswordHasher().verify(encrypted_password, password)
except argon2.exceptions.InvalidHashError:
except argon2.exceptions.InvalidHashError, argon2.exceptions.VerifyMismatchError:
# Rewrite exception to maintain API compatibility.
return False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment