mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-16 19:00:54 +00:00
Add is_authenticated2 to BaseAuth
Adds the ``login`` argument.
This commit is contained in:
parent
106aeae781
commit
8be792280a
2 changed files with 14 additions and 3 deletions
|
@ -446,7 +446,8 @@ class Application:
|
|||
self.logger.info("Refused unsafe username: %r", user)
|
||||
is_authenticated = False
|
||||
else:
|
||||
is_authenticated = self.Auth.is_authenticated(user, password)
|
||||
is_authenticated = self.Auth.is_authenticated2(login, user,
|
||||
password)
|
||||
if not is_authenticated:
|
||||
self.logger.info("Failed login attempt: %r", user)
|
||||
# Random delay to avoid timing oracles and bruteforce attacks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue