Commit f8a99c60 authored by Ozzieisaacs's avatar Ozzieisaacs

Fix for #1096 (exception on digest request)

parent 2f27a7b0
......@@ -47,7 +47,7 @@ def requires_basic_auth_if_no_ano(f):
def decorated(*args, **kwargs):
auth = request.authorization
if config.config_anonbrowse != 1:
if not auth or not check_auth(auth.username, auth.password):
if not auth or auth.type != 'basic' or not check_auth(auth.username, auth.password):
return authenticate()
return f(*args, **kwargs)
if config.config_login_type == constants.LOGIN_LDAP and services.ldap:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment