[CMF-checkins] SVN: CMF/branches/1.6/CMFDefault/skins/ Make sure
the skin scripts pass the REQUEST into the newly POST
protected security methods.
Alec Mitchell
apm13 at columbia.edu
Sun Apr 1 17:02:00 EDT 2007
Log message for revision 73969:
Make sure the skin scripts pass the REQUEST into the newly POST protected security methods.
Changed:
U CMF/branches/1.6/CMFDefault/skins/control/change_password.py
U CMF/branches/1.6/CMFDefault/skins/control/register.py
U CMF/branches/1.6/CMFDefault/skins/zpt_control/change_password.py
U CMF/branches/1.6/CMFDefault/skins/zpt_control/members_add_control.py
-=-
Modified: CMF/branches/1.6/CMFDefault/skins/control/change_password.py
===================================================================
--- CMF/branches/1.6/CMFDefault/skins/control/change_password.py 2007-04-01 20:13:59 UTC (rev 73968)
+++ CMF/branches/1.6/CMFDefault/skins/control/change_password.py 2007-04-01 21:01:59 UTC (rev 73969)
@@ -9,7 +9,7 @@
context.REQUEST,
error=failMessage)
member = mt.getAuthenticatedMember()
-mt.setPassword(password, domains)
+mt.setPassword(password, domains, REQUEST=context.REQUEST)
mt.credentialsChanged(password)
return context.personalize_form(context,
context.REQUEST,
Modified: CMF/branches/1.6/CMFDefault/skins/control/register.py
===================================================================
--- CMF/branches/1.6/CMFDefault/skins/control/register.py 2007-04-01 20:13:59 UTC (rev 73968)
+++ CMF/branches/1.6/CMFDefault/skins/control/register.py 2007-04-01 21:01:59 UTC (rev 73969)
@@ -18,7 +18,7 @@
return context.join_form( context, REQUEST, error=failMessage )
else:
password=REQUEST.get('password') or portal_registration.generatePassword()
- portal_registration.addMember(REQUEST['username'], password, properties=REQUEST)
+ portal_registration.addMember(REQUEST['username'], password, properties=REQUEST, REQUEST=REQUEST)
if portal_properties.validate_email or REQUEST.get('mail_me', 0):
portal_registration.registeredNotify(REQUEST['username'])
Modified: CMF/branches/1.6/CMFDefault/skins/zpt_control/change_password.py
===================================================================
--- CMF/branches/1.6/CMFDefault/skins/zpt_control/change_password.py 2007-04-01 20:13:59 UTC (rev 73968)
+++ CMF/branches/1.6/CMFDefault/skins/zpt_control/change_password.py 2007-04-01 21:01:59 UTC (rev 73969)
@@ -9,7 +9,7 @@
context.REQUEST,
error=failMessage)
member = mt.getAuthenticatedMember()
-mt.setPassword(password, domains)
+mt.setPassword(password, domains, REQUEST=context.REQUEST)
mt.credentialsChanged(password)
return context.personalize_form(context,
context.REQUEST,
Modified: CMF/branches/1.6/CMFDefault/skins/zpt_control/members_add_control.py
===================================================================
--- CMF/branches/1.6/CMFDefault/skins/zpt_control/members_add_control.py 2007-04-01 20:13:59 UTC (rev 73968)
+++ CMF/branches/1.6/CMFDefault/skins/zpt_control/members_add_control.py 2007-04-01 21:01:59 UTC (rev 73969)
@@ -11,7 +11,8 @@
try:
rtool.addMember( id=member_id, password=password,
properties={'username': member_id,
- 'email': member_email} )
+ 'email': member_email},
+ REQUEST=context.REQUEST)
except ValueError, errmsg:
return context.setStatus(False, errmsg)
else:
More information about the CMF-checkins
mailing list