vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I disable password changes? (https://vborg.vbsupport.ru/showthread.php?t=152478)

patrickb 07-17-2007 12:18 AM

How do I disable password changes?
 
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:
Code:

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:
Code:

        eval(standard_error(fetch_error('phrase_varname_goes_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?


All times are GMT. The time now is 02:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01011 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete