mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-10 21:24:15 +00:00
Fix for #1326 (typo)
This commit is contained in:
parent
8bd1903d98
commit
7393b69757
@ -157,7 +157,7 @@ def load_user_from_auth_header(header_val):
|
|||||||
pass
|
pass
|
||||||
user = _fetch_user_by_name(basic_username)
|
user = _fetch_user_by_name(basic_username)
|
||||||
if config.config_login_type == constants.LOGIN_LDAP and services.ldap:
|
if config.config_login_type == constants.LOGIN_LDAP and services.ldap:
|
||||||
if services.ldap.bind_user(str(user.password), basic_password)
|
if services.ldap.bind_user(str(user.password), basic_password):
|
||||||
return user
|
return user
|
||||||
if user and check_password_hash(str(user.password), basic_password):
|
if user and check_password_hash(str(user.password), basic_password):
|
||||||
return user
|
return user
|
||||||
|
Loading…
Reference in New Issue
Block a user