This commit is contained in:
Mathieu Dupuy
2014-07-24 18:56:00 +02:00
committed by Mathieu Dupuy
parent 6854cd0ee3
commit a94984b653
2 changed files with 57 additions and 80 deletions

View File

@@ -305,7 +305,7 @@ class Application(object):
status, headers, answer = NOT_ALLOWED
if ((status, headers, answer) == NOT_ALLOWED and
not is_authenticated and
not auth.is_authenticated(user, password) and
config.get("auth", "type") != "None"):
# Unknown or unauthorized user
log.LOGGER.info("%s refused" % (user or "Anonymous user"))