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

FEATURE REQUEST: Setting to control a closed User account #1239

Open
daz-williams opened this issue Oct 9, 2024 · 2 comments
Open

FEATURE REQUEST: Setting to control a closed User account #1239

daz-williams opened this issue Oct 9, 2024 · 2 comments
Assignees

Comments

@daz-williams
Copy link

Is your feature request related to a problem? Please describe.
When a User requests to close their account, we set the is_active field to False in the Django Default User Model.
This prevents sign-in.
With an out of the box Axes setup, Axes treats this as a Failed Login attempt.
Error in logs: AXES: User login failed, running database handler for failure.
I am unable to implement a Custom User Login as Axes processes the login request before it is processed in the custom user login class.

Describe the solution you'd like
An Axes setting that checks if the is_active user field is set to False and responds with a relevant flag "User Account Inactive" or similar.

Describe alternatives you've considered
I tried the example view on the Axes Custom Installation page and it does not take into account the is_active field.
Axes Link: https://django-axes.readthedocs.io/en/latest/5_customization.html

Additional context
Axes rocks!!! Thank you for a great product!

@aleksihakli
Copy link
Member

Hey! Sounds like a good improvement, please feel free to open a PR for this.

@kim-sangah
Copy link

Hi, I'm just starting with open source.
would it be okay if I take on this issue as the assignee?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants