From: hernani Date: Fri, 9 Jul 2010 15:46:36 +0000 (+0000) Subject: Fixes the forwarding after email validation. X-Git-Tag: live~620 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/834e472cdec6eb5e2240dfcc83683c5c2cd7aa0e Fixes the forwarding after email validation. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@514 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/auth.py b/forum/views/auth.py index 08013f9..073b9b6 100644 --- a/forum/views/auth.py +++ b/forum/views/auth.py @@ -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()