pennersr / django-allauth

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://allauth.org
MIT License
9.54k stars 3.03k forks source link

Fire AUTH_PASSWORD_VALIDATORS password_changed methods on password change #3440

Closed SebCorbin closed 1 year ago

SebCorbin commented 1 year ago

In Django, each validator implementing a password_changed() method gets called, it allows use cases like django_password_validators.password_history

Hence the password_changed() function from Django should be called in ChangePasswordForm

SebCorbin commented 1 year ago

Sorry it is actually fired by user.set_password() (from the adapter), but my AUTH_PASSWORD_VALIDATORS = [] setting in dev was interfering