Browse Source

use different token

Peter Bieringer 1 năm trước cách đây
mục cha
commit
5a591b6471
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      radicale/auth/htpasswd.py

+ 1 - 1
radicale/auth/htpasswd.py

@@ -283,6 +283,6 @@ class Auth(auth.BaseAuth):
                 logger.debug("Login verification failed for user: '%s' ( method '%s')", login, method)
         else:
             # dummy delay
-            (method, password_ok) = self._plain(str(htpasswd_mtime_ns), password)
+            (method, password_ok) = self._plain(str(time.time_ns()), password)
             logger.debug("Login verification user not found: '%s'", login)
         return ""