[CMF-checkins] CVS: CMF - register.py:1.2
andrew@digicool.com
andrew@digicool.com
Fri, 29 Jun 2001 10:48:40 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory korak.digicool.com:/tmp/cvs-serv15460/control
Modified Files:
register.py
Log Message:
#Fixed a bug in sucessful registration.
--- Updated File register.py in package CMF --
--- register.py 2001/06/28 21:16:27 1.1
+++ register.py 2001/06/29 14:48:40 1.2
@@ -5,7 +5,6 @@
REQUEST=context.REQUEST
portal_properties = context.portal_properties
portal_registration = context.portal_registration
-join_form=context.join_form
if not portal_properties.validate_email:
failMessage = portal_registration.testPasswordValidity(password, confirm)
@@ -19,4 +18,4 @@
portal_registration.addMember(REQUEST['username'], password, properties=REQUEST)
if portal_properties.validate_email or REQUEST.get('mail_me', 0):
portal_registration.registeredNotify(REQUEST['username'])
- return REQUEST.RESPONSE.redirect(context.absolute_url() + '/registered')
+ return context.registered(context,REQUEST)