Déplacement pour eggification.
[Plinn.git] / 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 (executable)
index ac613d7..0000000
+++ /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