Log in

View Full Version : How do I disable password changes?


patrickb
07-17-2007, 12:18 AM
Hello,

Is there a way to disable password changes for my users? I am using vBulletin with an external CMS and I am creating and managing the users from there.

I would like my users only to be able to change their password though my CMS and not though vBulletin.

Is this possible? If so, how?

Thanks

calorie
07-17-2007, 01:11 AM
Untested, but this plugin at the profile_start hook may do the trick:

if ($_REQUEST['do'] == 'editpassword' || $_REQUEST['do'] == 'updatepassword')
{
print_no_permission();
}

patrickb
07-17-2007, 01:44 AM
Thanks! It works!

How can I specify a different error message? For example "Please use the CMS to manage your password and e-mail"

calorie
07-17-2007, 01:55 AM
Add a phrase to the 'Error Messages' phrase type. Use the following:

eval(standard_error(fetch_error('phrase_varname_go es_here')));

// instead of

print_no_permission();

patrickb
07-17-2007, 08:57 AM
What about password resets?

It it possible to disable them? Is there a hook or an option to stop the user from using it?