mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update yunohost_user.py
This commit is contained in:
parent
a8369acfe6
commit
81b460f74d
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ def user_update(username, firstname=None, lastname=None, mail=None, change_passw
|
||||||
new_attr_dict['cn'] = new_attr_dict['displayName'] = firstname + ' ' + lastname
|
new_attr_dict['cn'] = new_attr_dict['displayName'] = firstname + ' ' + lastname
|
||||||
|
|
||||||
if change_password:
|
if change_password:
|
||||||
pwd_changed = os.system('echo "'+ password +'\n'+ password +'" | smbldap-passwd '+ username)
|
pwd_changed = os.system('echo "'+ change_password +'\n'+ change_password +'" | smbldap-passwd '+ username)
|
||||||
if pwd_changed > 0:
|
if pwd_changed > 0:
|
||||||
raise YunoHostError(169, _("An error occured during password update"))
|
raise YunoHostError(169, _("An error occured during password update"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue