1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-06-28 16:13:17 +00:00

Fix for #1096 (exception on digest request)

This commit is contained in:
Ozzieisaacs 2019-12-01 09:33:11 +01:00
parent 2f27a7b0ce
commit f8a99c60d8

View File

@ -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: