resend_activation should give the user a message and redirect them to their user_home
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 29 Jul 2011 13:09:13 +0000 (08:09 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 29 Jul 2011 13:09:13 +0000 (08:09 -0500)
mediagoblin/auth/views.py

index 7fe507b1bc1582692d8ace9d09232bee475958e3..6f3c516544d7e9295e26afadb327ee76ce3981c9 100644 (file)
@@ -166,4 +166,10 @@ def resend_activation(request):
 
     send_verification_email(request.user, request)
 
-    return redirect(request, 'mediagoblin.auth.resend_verification_success')
+    messages.add_message(
+        request,
+        messages.INFO,
+        'Resent your verification email.')
+    return redirect(
+        request, 'mediagoblin.user_pages.user_home',
+        user=request.user['username'])