From 7dac036171911cb93e081e616c503b1b5140c1fa Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 22 Feb 2025 16:21:28 +0000 Subject: [PATCH] Catch VerifyException --- jupyterhub_authenticator/password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub_authenticator/password.py b/jupyterhub_authenticator/password.py index 9b82a6e..556c7e8 100644 --- a/jupyterhub_authenticator/password.py +++ b/jupyterhub_authenticator/password.py @@ -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 -- GitLab