Mercurial > public > sg101
diff antispam/receivers.py @ 934:9d6c2ed2f348
Add unit test for antispam signal handlers.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 16 Apr 2015 20:49:19 -0500 |
parents | 988782c6ce6c |
children |
line wrap: on
line diff
--- a/antispam/receivers.py Thu Apr 16 19:35:08 2015 -0500 +++ b/antispam/receivers.py Thu Apr 16 20:49:19 2015 -0500 @@ -24,6 +24,7 @@ if user: logger.info('User logout signal: %s', user.username) + def login_failed_callback(sender, credentials, **kwargs): """Signal callback for a login failure event.""" logger.error('User login failed signal from %s: %s', sender,