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.

Comments

dries’s picture

Status: Needs review » Needs work

For 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!

Xirzec’s picture

Status: Needs work » Needs review
StatusFileSize
new4.2 KB

Finally 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.

dries’s picture

dries’s picture

Status: Needs review » Closed (duplicate)