Răsfoiți Sursa

add additional debug line

Peter Bieringer 1 an în urmă
părinte
comite
4f2990342d
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      radicale/auth/htpasswd.py

+ 2 - 0
radicale/auth/htpasswd.py

@@ -155,6 +155,8 @@ class Auth(auth.BaseAuth):
                             if login_ok and password_ok:
                                 logger.debug("Password verification for user '%s' with method '%s': password_ok=%s", login, method, password_ok)
                                 return login
+                            elif login_ok:
+                                logger.debug("Password verification for user '%s' with method '%s': password_ok=%s", login, method, password_ok)
                         except ValueError as e:
                             raise RuntimeError("Invalid htpasswd file %r: %s" %
                                                (self._filename, e)) from e