mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-08 15:57:36 +08:00
Fix for login issues.
This commit is contained in:
parent
4260d8ddfe
commit
50b5b85045
1 changed files with 1 additions and 3 deletions
|
@ -471,9 +471,7 @@ def save_wizard():
|
|||
|
||||
|
||||
@route(base_url + 'static/:path#.+#', name='static')
|
||||
@custom_auth_basic(check_credentials)
|
||||
def static(path):
|
||||
authorize()
|
||||
return static_file(path, root=os.path.join(os.path.dirname(__file__), '../static'))
|
||||
|
||||
|
||||
|
@ -1415,7 +1413,7 @@ def save_settings():
|
|||
else:
|
||||
settings.auth.type = text_type(settings_auth_type)
|
||||
settings.auth.username = text_type(settings_auth_username)
|
||||
settings.auth.password = hashlib.md5(settings_auth_password).hexdigest()
|
||||
settings.auth.password = hashlib.md5(settings_auth_password.encode('utf-8')).hexdigest()
|
||||
if settings_auth_username not in aaa._store.users:
|
||||
cork = Cork(os.path.normpath(os.path.join(args.config_dir, 'config')), initialize=True)
|
||||
cork._store.roles[''] = 100
|
||||
|
|
Loading…
Reference in a new issue