Currently there is no way to disable the "reset password" prompts on the login block or the /user/login page. Sometimes (for closed sites, especially ones using external auth) it is desirable for this option to be removed, or at least hidden.
Thus I offer this small patch which adds a menu option to turn this on and off. I saw it requested before but I don't think anyone ever bothered to submit a patch. To be consistent it also disables the 'reset password' field in the user/edit/ page as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | user_change_password_option.patch_0.txt | 4.2 KB | Xirzec |
| user_change_password_option.patch.txt | 3.38 KB | Xirzec |
Comments
Comment #1
dries commentedFor sites that rely on LDAP auth. this makes sense. Two small nits:
1. For 'Enabled - Disabled' options we use radios, not a textfield.
2. After a comma there should be a space.
Thanks!
Comment #2
Xirzec commentedFinally got some time to clean this up.
I also added an additional check to disable the "Have you forgotten your password?" link in the form error message when someone fails to log in.
Comment #3
dries commentedSee also http://drupal.org/node/65159 and http://drupal.org/node/64483.
Comment #4
dries commented