require_active_login now redirect's to user's homepage if not email verified
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 29 Jul 2011 13:05:57 +0000 (08:05 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 29 Jul 2011 13:05:57 +0000 (08:05 -0500)
mediagoblin/decorators.py

index 081eda623f08c0d386d903bfbc9e4234aed4dba4..2e90274ec3960165e8330f50e53697d1daabc596 100644 (file)
@@ -38,8 +38,9 @@ def require_active_login(controller):
     def new_controller_func(request, *args, **kwargs):
         if request.user and \
                 request.user.get('status') == u'needs_email_verification':
-            return redirect(request,
-                    'mediagoblin.auth.verify_email_notice')
+            return redirect(
+                request, 'mediagoblin.user_pages.user_home',
+                user=request.user['username'])
         elif not request.user or request.user.get('status') != u'active':
             return exc.HTTPFound(
                 location="%s?next=%s" % (