Since we're talking about retrieve password
I've another issue that needs a fix

in tools.py

please add those

self.settings.retrieve_password_onvalidation = lambda:None  # or None
self.settings.reset_password_onvalidation = lambda:None   # or None

I wanted to limit this functionality so I had to make some users be
responsible on resetting passwords for specific set of users
I ended up with using settings.retrieve_password_onvalidation =
function
but settings.retrieve_password_onvalidation is not there in
auth.settings
In fact I can add it using :

auth.settings.lock_keys = False
auth.settings.tretrieve_password_onvalidation = my_custom_function
auth.settings.lock_keys = True

but I think it's best to have them explicitly in tools.py so that
everything  goes smoothly


Reply via email to