From 50b5b850456094e3bf28f1ce3d7f4821dd7d5703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 5 Dec 2019 06:56:33 -0500 Subject: [PATCH] Fix for login issues. --- bazarr/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index a448a5e52..973eefd8a 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -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