]> git.openstreetmap.org Git - osqa.git/commitdiff
Bad url reverse causing 500 on temporary signin.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 21 May 2010 23:43:13 +0000 (23:43 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 21 May 2010 23:43:13 +0000 (23:43 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@314 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/auth.py

index 6b7f5d1703f64d53f45660e15c8febab0895bbc2..477f16d1bcf9efb4234f26162725feb5594de28e 100644 (file)
@@ -236,7 +236,7 @@ def temp_signin(request, user, code):
     user = get_object_or_404(User, id=user)
 
     if (ValidationHash.objects.validate(code, user, 'templogin', [user.id])):
     user = get_object_or_404(User, id=user)
 
     if (ValidationHash.objects.validate(code, user, 'templogin', [user.id])):
-        return login_and_forward(request,  user, reverse('user_authsettings'),
+        return login_and_forward(request,  user, reverse('user_authsettings', kwargs={'id': user.id}),
                 _("You are logged in with a temporary access key, please take the time to fix your issue with authentication."))
     else:
         raise Http404()
                 _("You are logged in with a temporary access key, please take the time to fix your issue with authentication."))
     else:
         raise Http404()