Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin Tips & Tricks
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Force Password Reset
ozzy47's Avatar
ozzy47
Join Date: Jul 2009
Posts: 10,929

Just here to help out where I can.

USA
Show Printable Version Email this Page Subscription
ozzy47 ozzy47 is offline 10-22-2013, 10:00 PM

As most vBulletin owners know, you can set a password expiry for your usergroups.

Sometimes after a hack, on your site, or you just feel the need to make all your members change their passwords, this can be a pain in the rear end.

Sure you can set the password expiry to 7 days, but then it will not ensure every user logs in, and changes it before that time, Any usey changing it right away would havr to change it once again in 7 mode days.

The solution!

Set your usergroups password expiry date to some time like 730.

Should you have alot of usergroups, and don't want to change them all individually, you can run this query in the ACP.
Code:
UPDATE `usergroup` SET `passwordexpires` = '730' WHERE `usergroup`.`usergroupid` !=6;
That will set every usergroups password expiry to 730 days except for usergroup 6. Should you want to add more usergroups use this query.
Code:
UPDATE `usergroup` SET `passwordexpires` = '731' WHERE `usergroup`.`usergroupid` !=6 AND `usergroup`.`usergroupid` !=5 AND `usergroup`.`usergroupid` !=7;
That will set every usergroups password expiry to 730 days except for usergroup 6, 5, 7.

Now to reset the users password date.

Run this query in the acp.
Code:
UPDATE `user` SET `passworddate` = '2011-10-20' WHERE `user`.`userid` !=1;
That will set everyone's date back to two days before the expiry date except the userid of 1

Should you want to exclude more users, run this query.
Code:
UPDATE `user` SET `passworddate` = '2012-10-22' WHERE `user`.`userid` !=1 AND `user`.`userid` !=2 AND `user`.`userid` !=3;
That will set everyone's date back to two days before the expiry date except the userid of 1, 2, 3

So now when any user logs into the forum, they will be forced to reset their passwords.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:27 AM.


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.07819 seconds
  • Memory Usage 2,185KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (2)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete