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.
Currently, if the password reset mail fails in user_pass_submit the user gets these two conflicting messages:
Unable to send e-mail. Please contact the site administrator if the problem persists.
Further instructions have been sent to your e-mail address.
Since _user_mail_notify provides a return value, we should check that before we print the second message.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#3 | user_pass_submit_message.patch | 1.01 KB | Artusamak |
user_pass_submit_message.patch | 1023 bytes | msonnabaum | |
Comments
Comment #1
agentrickardLooks sane. Passing to testbed.
Comment #3
ArtusamakYou patch is misformatted, you now have to generate it with the prefix, that's why your patch failed to pass the testbost.
Here is the attachment of the fixed patch (which is working great).
Comment #4
webchickMakes sense.
Committed and pushed to 8.x and 7.x. Thanks!