From 7a8b5d78bee059f98bedd69d5cb3416a44d64c81 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Thu, 7 Sep 2017 22:32:21 +0300 Subject: [PATCH] store normal password in plain text Unfortunately we must store the surveillance (normal) password in plain text. The reason is that we need it afterwards when we build the camera config, to properly set a username:password for the streaming auth. --- motioneye/config.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/motioneye/config.py b/motioneye/config.py index b87fe8d..b3593e4 100644 --- a/motioneye/config.py +++ b/motioneye/config.py @@ -669,11 +669,7 @@ def main_ui_to_dict(ui): call_hook(ui['admin_username'], ui['admin_password']) if ui.get('normal_password') is not None: - if ui['normal_password']: - data['@normal_password'] = hashlib.sha1(ui['normal_password']).hexdigest() - - else: - data['@normal_password'] = '' + data['@normal_password'] = ui['normal_password'] call_hook(ui['normal_username'], ui['normal_password']) -- 2.39.5