Commit 493e8075 authored by Remi Oudin's avatar Remi Oudin

Réparation de la modification des mots de passe

parent ced4f3ef
......@@ -200,11 +200,11 @@ L'adhérent possède également l'alias :
if test_password(password, self_cont):
if return_obj:
proprio['userPassword'] = unicode(lc_utils.hash_password(password))
proprio['userPassword'] = unicode(lc_utils.hash_password(password.encode('ascii')))
return proprio
else:
with self.conn.search(dn=proprio.dn, scope=0, mode='rw')[0] as proprio:
proprio['userPassword'] = unicode(lc_utils.hash_password(password))
proprio['userPassword'] = unicode(lc_utils.hash_password(password.encode('ascii')))
proprio.validate_changes()
proprio.history_gen()
proprio.save()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment