Skip to content
Snippets Groups Projects
Commit ddf6afd0 authored by ale's avatar ale
Browse files

Relax a bit the blacklisting defaults

parent b56a4a0c
No related branches found
No related tags found
No related merge requests found
......@@ -59,9 +59,9 @@ def do_auth(username, service, shard, password, otp_token, source_ip,
def _do_auth(mc, username, service, shard, password, otp_token, source_ip,
password_only):
# Username must be an ASCII string.
bl = AuthBlackList(current_app.config.get('BLACKLIST_COUNT', 5),
bl = AuthBlackList(current_app.config.get('BLACKLIST_COUNT', 50),
current_app.config.get('BLACKLIST_PERIOD', 600),
current_app.config.get('BLACKLIST_TIME', 6*3600),
current_app.config.get('BLACKLIST_TIME', 2*3600),
mc)
if current_app.config.get('ENABLE_BLACKLIST'):
if bl.is_blacklisted('u', username):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment