X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/dec306155823082d0e25e6abb10edc0cd269f0dd..0cf194935edb17d2c9288e4c4e5344a1775bcb5d:/forum/views/auth.py diff --git a/forum/views/auth.py b/forum/views/auth.py index 23059e2..477f16d 100644 --- a/forum/views/auth.py +++ b/forum/views/auth.py @@ -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,7 +304,8 @@ def auth_settings(request, id): }) return render_to_response('auth/auth_settings.html', { - 'user': user_, + '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,