X-Git-Url: https://scm.cri.ensmp.fr/git/GroupUserFolder.git/blobdiff_plain/e9d14b6b5cc9cd4775c60cb340b5c4c787536fc3:/skins/gruf/change_password.py..3e1ba4932c34812cf2f6f3569b0f0dbea97b7a0b:/Products/GroupUserFolder/skins/gruf/static/git-logo.png diff --git a/skins/gruf/change_password.py b/skins/gruf/change_password.py deleted file mode 100644 index cd3f97f..0000000 --- a/skins/gruf/change_password.py +++ /dev/null @@ -1,31 +0,0 @@ -## Script (Python) "change_password" -##bind container=container -##bind context=context -##bind namespace= -##bind script=script -##bind subpath=traverse_subpath -##parameters=password, confirm, domains=None -##title=Change password -## - -pass - -## This code is there because there's a bug in CMF that prevents -## passwords to be changed if the User Folder doesn't store it in a __ -## attribute. -## This includes User Folders such as LDAPUF, SimpleUF, and, of course, GRUF. -## This also includes standard UF with password encryption ! - -mt = context.portal_membership -failMessage=context.portal_registration.testPasswordValidity(password, confirm) - -if failMessage: - return context.password_form(context, - context.REQUEST, - error=failMessage) -context.REQUEST['AUTHENTICATED_USER'].changePassword(password,REQUEST=context.REQUEST) -mt.credentialsChanged(password) -return context.personalize_form(context, - context.REQUEST, - portal_status_message='Password changed.') -