Change to "user" module...
conceptrat - January 20, 2004 - 02:58
When you go to "administer/configuration/modules/user" and change the "Public registrations:" under "User settings" to "Only site administrators can create new user accounts." it removes the "Create new account" link under the form fields in the "User Login" block.
Would it make sense to also remove the "Request new password" link?
If so, it would just be as simple as moving the "}" in the code after the line that displays the "Request new password" link.
In "modules/user.module":
if (variable_get("user_register", 1)) {
$items[] = l(t("Create new account"), "user/register", array("title" => t("Create a new user account.")));
}
$items[] = l(t("Request new password"), "user/password", array("title" => t("Request new password via e-mail.")));would become:
if (variable_get("user_register", 1)) {
$items[] = l(t("Create new account"), "user/register", array("title" => t("Create a new user account.")));
$items[] = l(t("Request new password"), "user/password", array("title" => t("Request new password via e-mail.")));
}I hope this isn't a duplicate post as I couldn't find mention of it anywhere else in the forums.
Cheers

Why would you remove "Request new Passwords"?
Why would it make sense to remove the "Request new password" link?
Requesting a new password is for existing users who forget their password, and it isn't related to allowing or disallowing public registration.
-- Irwin
thanks.
I found this to be useful. Thanks!
Thanks
I needed to figure this out also because I created a login which used the same username password. Thank you
Bug report and/or patch
Could you make this a bug report? If possible, attach a patch and add the bug report to the patch queue.