Description
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.