]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/auth.py
Added reCaptcha image in case the Akismet module returns spam while checking
[osqa.git] / forum / views / auth.py
index abbbc31c890d2f10b10ecad68aea0e723af91e21..6134d124b2fd390f5657b69a18c5893e4f4bfc41 100644 (file)
@@ -289,7 +289,7 @@ def validate_email(request, user, code):
         user.save()
         return login_and_forward(request, user, reverse('index'), _("Thank you, your email is now validated."))
     else:
-        raise Http404()
+        return render_to_response('auth/mail_already_validated.html', { 'user' : user }, RequestContext(request))
 
 def auth_settings(request, id):
     user_ = get_object_or_404(User, id=id)
@@ -405,4 +405,4 @@ def forward_suspended_user(request, user, show_private_msg=True):
 @decorate.withfn(login_required)
 def signout(request):
     logout(request)
-    return HttpResponseRedirect(reverse('index'))
\ No newline at end of file
+    return HttpResponseRedirect(reverse('index'))