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

Add log message when blacklisting users

parent ddf6afd0
Branches
No related tags found
No related merge requests found
......@@ -92,7 +92,8 @@ def _do_auth(mc, username, service, shard, password, otp_token, source_ip,
if retval != protocol.OK and current_app.config.get('ENABLE_BLACKLIST'):
if user:
bl.auth_failure('u', username)
if bl.auth_failure('u', username):
current_app.logger.info('blacklisted user %s', username)
if (source_ip
and not whitelisted(source_ip, current_app.config.get('SOURCE_IP_WHITELIST'))):
if bl.auth_failure('ip', source_ip):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment