Gotta remove that '{CRYPT}' thing here too

This commit is contained in:
Alexandre Aubin 2018-10-25 15:18:44 +00:00
parent feb45578db
commit 848a6b6088

View file

@ -145,7 +145,7 @@ def tools_adminpw(auth, new_password):
with open('/etc/shadow', 'w') as after_file: with open('/etc/shadow', 'w') as after_file:
after_file.write(before.replace("root:" + hash_root, after_file.write(before.replace("root:" + hash_root,
"root:" + new_hash)) "root:" + new_hash.replace('{CRYPT}', '')))
except IOError as e: except IOError as e:
logger.warning(m18n.n('root_password_desynchronized')) logger.warning(m18n.n('root_password_desynchronized'))
return return