]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/auth.py
Fixing some encoding/decoding errors, including the akismate module, and fixed the...
[osqa.git] / forum / views / auth.py
index 62218e8197afe010410ab875fba90b8996d3f828..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])):
-        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()
@@ -304,6 +304,8 @@ def auth_settings(request, id):
         })
 
     return render_to_response('auth/auth_settings.html', {
+        'view_user': user_,
+        "can_view_private": (user_ == request.user) or request.user.is_superuser,
         'form': form,
         'has_password': user_.has_usable_password(),
         'auth_keys': auth_keys_list,