vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   Force Password Reset (https://vborg.vbsupport.ru/showthread.php?t=303731)

ozzy47 10-22-2013 10:00 PM

Force Password Reset
 
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.


All times are GMT. The time now is 02:20 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.01092 seconds
  • Memory Usage 1,706KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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