mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
sso: Add captcha validation on 3 failed attempts
- clearing ip address correctly is not implemented yet - currently clearing all ip addresses Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
31cd97e71e
commit
f330d09ec9
5 files changed
+31
-12
No files matched your search
@@ -23,7 +23,7 @@ from django.urls import reverse_lazy
|
||||
|
||||
from stronghold.decorators import public
|
||||
from plinth.utils import non_admin_view
|
||||
from plinth.modules.sso.views import SSOLoginView, SSOLogoutView, CaptchaLoginView
|
||||
from plinth.modules.sso.views import SSOLoginView, SSOLogoutView
|
||||
from . import views
|
||||
|
||||
from axes.decorators import watch_login
|
||||
@@ -49,9 +49,6 @@ urlpatterns = [
|
||||
non_admin_view(SSOLogoutView.as_view()),
|
||||
{'next_page': reverse_lazy('index')},
|
||||
name='logout'),
|
||||
url(r'^accounts/login/captcha/$',
|
||||
public(CaptchaLoginView.as_view()),
|
||||
name='captcha-login'),
|
||||
url(r'^users/firstboot/$',
|
||||
public(views.FirstBootView.as_view()),
|
||||
name='firstboot'),
|
||||
|
||||
Reference in new issue
Block a user