Fix #1170 Auth-digest Header no longer crashs calibre-web
Fix #1161 Shelfs are reordering again Update Sortable.js to 2.10.1 Code cosmetics
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ def load_user_from_auth_header(header_val):
|
||||
header_val = base64.b64decode(header_val).decode('utf-8')
|
||||
basic_username = header_val.split(':')[0]
|
||||
basic_password = header_val.split(':')[1]
|
||||
except TypeError:
|
||||
except (TypeError, UnicodeDecodeError):
|
||||
pass
|
||||
user = _fetch_user_by_name(basic_username)
|
||||
if user and check_password_hash(str(user.password), basic_password):
|
||||
|
||||
Reference in New Issue
Block a user