Fix for login issues.

This commit is contained in:
Louis Vézina 2019-12-05 06:56:33 -05:00
parent 4260d8ddfe
commit 50b5b85045
1 changed files with 1 additions and 3 deletions

View File

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