Back to index

plone3  3.1.7
Variables
change_password Namespace Reference

Variables

tuple mtool = getToolByName(script, 'portal_membership')
tuple rtool = getToolByName(script, 'portal_registration')
tuple result = rtool.testPasswordValidity(password, confirm)
tuple member = mtool.getAuthenticatedMember()
 mt = context.portal_membership
 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.
tuple failMessage = context.portal_registration.testPasswordValidity(password, confirm)
 error = failMessage)
string portal_status_message = 'Password changed.'

Variable Documentation

Definition at line 25 of file change_password.py.

tuple change_password.failMessage = context.portal_registration.testPasswordValidity(password, confirm)

Definition at line 20 of file change_password.py.

tuple change_password.member = mtool.getAuthenticatedMember()

Definition at line 14 of file change_password.py.

change_password.mt = context.portal_membership

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.

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 !

Definition at line 19 of file change_password.py.

tuple change_password.mtool = getToolByName(script, 'portal_membership')

Definition at line 7 of file change_password.py.

string change_password.portal_status_message = 'Password changed.'

Definition at line 30 of file change_password.py.

tuple change_password.result = rtool.testPasswordValidity(password, confirm)

Definition at line 10 of file change_password.py.

tuple change_password.rtool = getToolByName(script, 'portal_registration')

Definition at line 8 of file change_password.py.