From 7271249e048621d423130a315c451ec1439e630b Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 14 Jan 2021 16:02:17 -0500 Subject: [PATCH] Fix for UI password being reHashed on settings save. --- bazarr/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bazarr/config.py b/bazarr/config.py index 158415e5f..b49dfd8b7 100644 --- a/bazarr/config.py +++ b/bazarr/config.py @@ -211,7 +211,8 @@ def save_settings(settings_items): value = 'False' if key == 'settings-auth-password': - value = hashlib.md5(value.encode('utf-8')).hexdigest() + if value != settings.auth.password: + value = hashlib.md5(value.encode('utf-8')).hexdigest() if key == 'settings-general-debug': configure_debug = True