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

Locked Out Signal Parameter Differentiation? #1273

Open
js-truework opened this issue Feb 6, 2025 · 0 comments
Open

Locked Out Signal Parameter Differentiation? #1273

js-truework opened this issue Feb 6, 2025 · 0 comments

Comments

@js-truework
Copy link

Hi folks, apologies if there's a better place to bring up this sort of inquiry.

I am setting up account lockouts and wanted to emit audit log events when a lockout occurs. I have my lockout_parameters set to AXES_LOCKOUT_PARAMETERS = ["ip_address", ["username", "user_agent"]] but when I emit an audit log I want to differentiate between when an ip_address alone gets locked out versus when a username+user_agent gets locked out. I'm fairly new to Django's signal handling, but as far as I can tell, it's not currently possible for a signal handler to determine which parameter caused a lockout, is it?

Do we think this would be something that could be implemented in a reasonable way? I think it could be useful just in general to be able to differentiate behaviors when a lockout occurs based on what parameter(s) caused the lockout.

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

No branches or pull requests

2 participants
@js-truework and others