-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify and isolate password changes in password change views
ChangePasswordView and PasswordResetTokenView both change the password of the acting user. Their APIs are now unified. ChangePasswordView used to rely on the form to set the user's password. This has been moved to the view as the correct place for this behavior. This is backwards incompatible for forms that overrode ChangePasswordForm.save to modify the password setting behavior. PasswordResetTokenView has been unified with the new API given to ChangePasswordView. The password_changed signal is now fired from the view when the password is changed. The new API now isolates the password change behavior from actions to take after the password has been changed on the User model or any other behavior a site developer needs to take when password is being changed.
- Loading branch information
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters