From: Calin Crisan Date: Thu, 7 Sep 2017 19:32:21 +0000 (+0300) Subject: store normal password in plain text X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=7a8b5d78bee059f98bedd69d5cb3416a44d64c81;p=motioneye-debian 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. --- 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'])