Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception is raised when LOGIN_FAILURE_LIMIT is reached for user that doesn't exit #25

Closed
sztamas opened this issue Aug 11, 2017 · 0 comments
Assignees
Labels

Comments

@sztamas
Copy link
Contributor

sztamas commented Aug 11, 2017

The LOGIN_FAILURE_LIMIT shouldn't apply for usernames that don't exist in the app, but currently an exception is raised when this happens.

To reproduce set LOGIN_FAILURE_LIMIT to 1 and try to log in with a username that doesn't exist.

  File "/env/lib/python3.6/site-packages/useraudit/models.py", line 133, in callback
     username = user.get_username()
AttributeError: 'NoneType' object has no attribute 'get_username'
@sztamas sztamas self-assigned this Aug 11, 2017
@sztamas sztamas added the bug label Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant