]> git.openstreetmap.org Git - osqa.git/commitdiff
Fixes the forwarding after email validation.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 9 Jul 2010 15:46:36 +0000 (15:46 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 9 Jul 2010 15:46:36 +0000 (15:46 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@514 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/auth.py

index 08013f978a12eaeceb54c39151d092a390aabfdf..073b9b605b33eda330cad30f68d37484057f87f5 100644 (file)
@@ -288,7 +288,7 @@ def validate_email(request, user, code):
     if (ValidationHash.objects.validate(code, user, 'email', [user.email])):
         user.email_isvalid = True
         user.save()
-        return login_and_forward(request, user, None, _("Thank you, your email is now validated."))
+        return login_and_forward(request, user, reverse('index'), _("Thank you, your email is now validated."))
     else:
         raise Http404()