Nuxeo mailing list archives
[CPS-devel] how can a logged_in member change his password
Anahide Tchertchian
at at nuxeo.com
Fri Sep 22 14:10:05 CEST 2006
Joachim Schmitz a écrit :
> I want to change the password of a logged_in user from a script.
>
> I did member.setPassword(newpw), but that fails with:
> CPS-3.4.2
Hi,
I suggest you make the changde by calling the same API that would be
called when a user changes its password on its preferences page:
members = portal_directories['members']
entry = {
'id': member_id,
'password': 'new_password',
}
members.editEntry(entry)
(not tested)
Regards,
--
Anahide Tchertchian, Nuxeo
Mail: at at nuxeo.com - Tel: +33 (0)1 40 33 71 60
http://www.nuxeo.com - http://www.cps-project.org
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.