Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
/**
* Provides a user password reset form.
*
* @internal
*/
class UserPasswordForm extends FormBase {
and
/**
* Form controller for the user password forms.
*
* @internal
*/
class UserPasswordResetForm extends FormBase {
I can't tell how these two forms are different from the class docs (or the class name, but that's another issue for another day).
One form is the 'send me an email to reset my password'. The other is the 'You have followed the link in the email, now enter a new password'.
Comment | File | Size | Author |
---|---|---|---|
#3 | the_class_docs_for_the_two_password_reset_forms_should_differentiate_them-3047699-3.patch | 940 bytes | alfredofonseca |
Comments
Comment #2
alfredofonseca CreditAttribution: alfredofonseca as a volunteer commentedI am working on this on DrupalCon 2019 Seattle
Comment #3
alfredofonseca CreditAttribution: alfredofonseca as a volunteer commentedComment #4
alfredofonseca CreditAttribution: alfredofonseca as a volunteer commentedModified:
- core/modules/user/src/Form/UserPasswordForm.php
- core/modules/user/src/Form/UserPasswordResetForm.php
Adding the descriptions requested by @joachim
Comment #5
cosmicdreams CreditAttribution: cosmicdreams at Nerdery commentedThis is a valid code comment contribution as this might seem clear to someone who has intimate knowledge of the reasons why these different forms were creating initially. The comments assist the developer who inherits the apis and needs to make sense of it all
Comment #8
webchickLIVE from DrupalCon Seattle!