/**
 * 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'.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

alfredofonseca’s picture

I am working on this on DrupalCon 2019 Seattle

alfredofonseca’s picture

alfredofonseca’s picture

Status: Active » Needs review

Modified:

- core/modules/user/src/Form/UserPasswordForm.php
- core/modules/user/src/Form/UserPasswordResetForm.php

Adding the descriptions requested by @joachim

cosmicdreams’s picture

Status: Needs review » Reviewed & tested by the community

This 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

  • webchick committed 1c35ead on 8.8.x
    Issue #3047699 by alfredofonseca, joachim, cosmicdreams: The class docs...

  • webchick committed 1894d46 on 8.7.x
    Issue #3047699 by alfredofonseca, joachim, cosmicdreams: The class docs...
webchick’s picture

Status: Reviewed & tested by the community » Fixed

LIVE from DrupalCon Seattle!

< Committed <a href="http://cgit.drupalcode.org/drupal/commit/?id=1c35ead">1c35ead</a> and pushed to 8.8.x. Thanks! >
 ------------------------------------------------------------------------------------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.