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.
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'])