X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3c4367d8e03450e9a73e61f4247145d2b6c86a33..959d888c17d1403d2eeecc19bc4b5e2c8d1debf6:/skins/custom_control/change_password.py diff --git a/skins/custom_control/change_password.py b/skins/custom_control/change_password.py deleted file mode 100755 index ac613d7..0000000 --- a/skins/custom_control/change_password.py +++ /dev/null @@ -1,14 +0,0 @@ -##parameters=password, confirm, domains=None, ajax='' -from ZTUtils import make_query as mq -url = context.portal_url() -red = context.REQUEST.RESPONSE.redirect - -mt = context.portal_membership -failMessage=context.portal_registration.testPasswordValidity(password, confirm) -if failMessage: - return red('%s/password_form?%s' % (url, mq(portal_status_message=failMessage, ajax=ajax))) - -member = mt.getAuthenticatedMember() -mt.setPassword(password, domains) -mt.credentialsChanged(password) -return red('%s/personalize_form?%s' % (url, mq(portal_status_message='Password changed.', ajax=ajax))) \ No newline at end of file