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.
I recently forgot my password on a sandbox and went through the forgot my password UI to get it rather than the usual wiping the db. This propted me to clean up that function.
- After mailing the password, set a message and go to the login form (was print a message as the entire page).
- Provide feedback if neither field was filled in.
- Make it a full menu callback instead of going through user_page().
- Fixed some indentation.
- Changed some double quotes to single quotes.
- Made sure all if statements have {}.
Comment | File | Size | Author |
---|---|---|---|
user.module_7.diff | 5.95 KB | drumm | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #2
(not verified) CreditAttribution: commented