View Full Version : Disable password reset
patrickb
07-18-2007, 05:03 AM
Is there a way to disable password resets?
I am managing my users thourgh a external CMS and I don't want users to change their password.
I've limited the password changing feature with the profile by using the hooks, but is there a way to achieve something similar with the password resets?
G0F0RBR0KE
07-18-2007, 05:15 AM
The only way for them not to receive a password is to remove your e-mail from the vb options so it won't send an e-mail when clicking on "Forgotten Password."
patrickb
07-18-2007, 06:11 AM
Do you mean the user's email or the webmaster's email (under Admin CP-> VB options->Site Name / URL / Contact Details->Webmaster's Email)?
G0F0RBR0KE
07-18-2007, 06:38 AM
The webmaster e-mail.
Once you remove, try to test it your self.
patrickb
07-18-2007, 07:08 AM
I'm posting this here in case anybody else needs it in the future.
I basically used the mail_send hook to check the subject. If it matches the one for the lost password recovery, I display an error message.
It might not be the best way to do it, but it works.
if( $fromemail == $vbulletin->options['webmasteremail'] )
{
foreach ($vbulletin->languagecache as $language)
{
eval('$' . 'lostsubject = "' . fetch_phrase('lostpw', 'emailsubject', 'emailsubject_', true, true, $language['languageid'], false) . '";' );
if( $subject == $lostsubject )
{
eval(standard_error(fetch_error('password_update_d isabled')));
}
}
}
patrickb
08-15-2007, 06:34 AM
Can anybody think of a better way to do this? This works...but has an obvious flaw that if there is high activity and notifications on the board, everytime an email is sent out this check will be made!
The only other option that I can think of is to modify the actual source code...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.