1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-28 03:56:43 +02:00

fix user params updates

This commit is contained in:
Dmytro Makovey 2017-09-27 21:48:20 -07:00
parent a6944582a3
commit 83e6d4400c

View File

@ -144,6 +144,9 @@ def config_update(verbose=False, delete_objects=False):
domain=domain,
**optional_params
)
else:
for k in optional_params:
setattr(user, k, optional_params[k])
user.set_password(password_hash, hash_scheme=hash_scheme, raw=True)
db.session.add(user)