Commit 643a3398 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch 'failed-login-bugfix' into 'master'

added authenticated check on saving default_redirect_uri

See merge request !38
parents e3bf5bb8 c707fe9a
Pipeline #7169 passed with stage
in 27 seconds
......@@ -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