Commits

Anonymous committed 0a62656

a few changes

Comments (0)

Files changed (4)

tgext.registration2.egg-info/PKG-INFO

 Metadata-Version: 1.0
 Name: tgext.registration2
-Version: 0.5.1dev-20090704
+Version: 0.5.1dev-20090815
 Summary: set of controller entries to handle users' (self)registration in turbogears 2
 Home-page: http://resheteva.org.il/packages
 Author: alex bodnaru

tgext/registration2/controllers.py

             # set it as login_url (instead of identity.failure_url).  
             # Otherwise, the user will loop back to validate after logging in, and then over 
             # to /login.
-            login_url = config.get('identity.failure_url', '/login')
+            edit_user_url = config.get('edit_user_url', './edit_user')
+            login_url = url('/login', __logins=1, came_from=edit_user_url)
             return dict(name=getattr(new_user, 'display_name', new_user.user_name), 
                             login=login_url, 
                             is_valid=True)
         else:
-            #if identity.not_anonymous():
-            #    #This is probably just someone with an old/stale link
-            #    redirect('./edit_user')
+            if identity.not_anonymous():
+                #This is probably just someone with an old/stale link
+                redirect('./edit_user')
             log.info('%s Bad validation using user=%s validation_key=%s' % 
                         (request.remote_addr, user, key))
             return dict(is_valid=False, 
Add a comment to this file

tgext/registration2/registration_config.pyc

Binary file modified.

tgext/registration2/templates/validate.html

         
         <p>
             You have successfully registered. 
-			<span py:if="request.identity" py:strip="True">
-				If you like, you can now <a href="${login}">login</a>.
-			</span>
+            If you like, you can now <a href="${login}">login and edit your information</a>.
         </p>
         
         <p>Thank you.</p>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.