Commit c707fe9a authored by Calum Mackervoy's avatar Calum Mackervoy Committed by Jean-Baptiste Pasquier

added authenticated check on saving default_redirect_uri

parent e3bf5bb8
......@@ -80,7 +80,7 @@ class LDPAccountLoginView(LoginView):
# if the user has 'next' set which is not default, update their preference
next = request.POST.get('next')
if next != settings.LOGIN_REDIRECT_URL:
if next != settings.LOGIN_REDIRECT_URL and request.user.is_authenticated:
request.user.default_redirect_uri = next
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment