mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
captcha: Fix issue with captcha path when captcha entered is wrong
Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
62f26433e8
commit
6e26c92441
2 files changed
+3
-1
No files matched your search
@@ -62,7 +62,8 @@ class SSOLoginView(LoginView):
|
||||
if request.user.is_authenticated:
|
||||
return set_ticket_cookie(request.user, response)
|
||||
else: # Redirect user to captcha page
|
||||
return HttpResponseRedirect('captcha')
|
||||
redirect = '' if request.path.rstrip('/').endswith('captcha') else 'captcha'
|
||||
return HttpResponseRedirect(redirect)
|
||||
return response
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user