{"action":"created","issue":{"url":"https://api.github.com/repos/django-pci/django-axes/issues/124","labels_url":"https://api.github.com/repos/django-pci/django-axes/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/django-pci/django-axes/issues/124/comments","events_url":"https://api.github.com/repos/django-pci/django-axes/issues/124/events","html_url":"https://github.com/django-pci/django-axes/issues/124","id":100069639,"number":124,"title":"Not locking anymore","user":{"login":"sergiolepore","id":459944,"avatar_url":"https://avatars.githubusercontent.com/u/459944?v=3","gravatar_id":"","url":"https://api.github.com/users/sergiolepore","html_url":"https://github.com/sergiolepore","followers_url":"https://api.github.com/users/sergiolepore/followers","following_url":"https://api.github.com/users/sergiolepore/following{/other_user}","gists_url":"https://api.github.com/users/sergiolepore/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiolepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiolepore/subscriptions","organizations_url":"https://api.github.com/users/sergiolepore/orgs","repos_url":"https://api.github.com/users/sergiolepore/repos","events_url":"https://api.github.com/users/sergiolepore/events{/privacy}","received_events_url":"https://api.github.com/users/sergiolepore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-10T13:44:19Z","updated_at":"2015-08-25T17:06:18Z","closed_at":null,"body":"I've noticed that between 1.3.9 and 1.4.0, `axes.decorators.get_user_attempts` is not working as expected. After lots of failed logins, it's not returning any attempt and not locking the account.\r\n\r\nI think I've found where is the problem:\r\n- [1.3.9](https://github.com/django-pci/django-axes/blob/4a7b90e98e07d667c33d3996c6628036f3edf5b1/axes/decorators.py#L237)\r\n- [1.4.0](https://github.com/django-pci/django-axes/blob/b73e659acc155dd9a69ccc22b6021ac355746f2d/axes/decorators.py#L241)\r\n\r\nMy settings:\r\n```python\r\n# django-axes\r\nAXES_LOGIN_FAILURE_LIMIT = 2\r\nAXES_LOCK_OUT_BY_COMBINATION_USER_AND_IP = True\r\nAXES_LOCKOUT_TEMPLATE = 'layouts/marketingsite/account_locked.html'\r\n```\r\n\r\nIf I change the `trusted=True` condition, everything works as usual:\r\n\r\n```python\r\n# axes/decorators.py\r\nattempts = AccessAttempt.objects.filter(\r\n    ip_address=ip, username=username, trusted=False\r\n)\r\n```\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/django-pci/django-axes/issues/comments/134672270","html_url":"https://github.com/django-pci/django-axes/issues/124#issuecomment-134672270","issue_url":"https://api.github.com/repos/django-pci/django-axes/issues/124","id":134672270,"user":{"login":"AFioca","id":1683297,"avatar_url":"https://avatars.githubusercontent.com/u/1683297?v=3","gravatar_id":"","url":"https://api.github.com/users/AFioca","html_url":"https://github.com/AFioca","followers_url":"https://api.github.com/users/AFioca/followers","following_url":"https://api.github.com/users/AFioca/following{/other_user}","gists_url":"https://api.github.com/users/AFioca/gists{/gist_id}","starred_url":"https://api.github.com/users/AFioca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AFioca/subscriptions","organizations_url":"https://api.github.com/users/AFioca/orgs","repos_url":"https://api.github.com/users/AFioca/repos","events_url":"https://api.github.com/users/AFioca/events{/privacy}","received_events_url":"https://api.github.com/users/AFioca/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T17:06:17Z","updated_at":"2015-08-25T17:06:17Z","body":"@aclark4life It looks like this issue was fixed with 4a926c7cc6d1d203202baea885f1f232e2e6ae9f but was then reverted here 2dfcf969d88f4277f6cba2d59c755dcbe5775f8d by @camilonova. What was the reason for reverting the changes?"}}