You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clayton Burlison edited this page Jun 13, 2017
·
3 revisions
Update
As of Sal 3.1.1 Brute force has been removed. Please use SAML instead.
Enabling brute force protection
You can add the following to your sal/settings.py to enable brute force protection. Change BRUTE_LIMIT to the number of login attempts allowed before the account is locked, BRUTE_COOLOFF is the time after which any locked accounts will be unlocked. BRUTE_PROTECTmust be set to True to enable the unlocking UI in the user management page.
BRUTE_PROTECT=TrueBRUTE_COOLOFF=3BRUTE_LIMIT=3###############INSTALLED_APPS+= ('axes',)
MIDDLEWARE_CLASSES+=('axes.middleware.FailedLoginMiddleware',)
# Max number of login attemts within the ``AXES_COOLOFF_TIME``AXES_LOGIN_FAILURE_LIMIT=BRUTE_LIMITAXES_COOLOFF_TIME=BRUTE_COOLOFF