vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=303388

Password Strength Check
by kh99
14 Oct 2013 15:47

5 Attachment(s)
What is it?
----------------------------
This mod adds a check for password strength at registration and when a user changes their password. You can specify the minimum length and number of upper case, digits, and other characters you want to require (see screen grab 3), or you can choose a minimum score to allow (based on length and types of characters included, see screen grab 4).


Installation:
----------------------------
1) Upload the files in the upload directory to the appropriate locations.

2) In the Product Manager in AdminCP, import the product XML file (product-kh99_passwords.xml).

3) In the admincp, go to "[kh99] Password Policy Options" and select the options you want.

Uninstalling:
----------------------------
1) Uninstall the product from the Product Manager in the AdminCP.

2) Remove the uploaded files.


Notes:
----------------------------
1) Tested on vb3.8.8. I also test a bit on vb3.8.2 (mostly for php version compatibility) and it seems to work.


History:
----------------------------
0.9.0 (October 14, 2013) - Initial Release

Chris8 15 Oct 2013 18:51

Awesome addition! Thank you for sharing and caring about vb 3.8 series!

Max Taxable 15 Oct 2013 19:05

Reserved.

How does this jell with registration timers and the like? How does it work for folks who run with javascript disabled on their browsers?

kh99 15 Oct 2013 19:25

Quote:

Originally Posted by Max Taxable (Post 2453624)
Reserved.

How does this jell with registration timers and the like? How does it work for folks who run with javascript disabled on their browsers?


Well, it's somewhat embarrassing, but I haven't tested it with any of the registration timer mods, so I'm not sure. I labeled it "beta", so I was kind of hoping people would try it out and report any problems. Maybe I'll try it if i get a chance (I'm working on the vb4 version right now).

As for people with no javascript, it will check on the server regardless of whether it's been checked by JS (unless you turn off that feature, which is an option although I don't really know why anyone would want to turn it off).

Max Taxable 15 Oct 2013 19:47

Quote:

Originally Posted by kh99 (Post 2453630)
Well, it's somewhat embarrassing, but I haven't tested it with any of the registration timer mods, so I'm not sure. I labeled it "beta", so I was kind of hoping people would try it out and report any problems. Maybe I'll try it if i get a chance (I'm working on the vb4 version right now).

It might be actually a help for the timer checks, making people take longer to get the password right. This is if there's no conflict otherwise.
Quote:

As for people with no javascript, it will check on the server regardless of whether it's been checked by JS (unless you turn off that feature, which is an option although I don't really know why anyone would want to turn it off).
Right but, how will the person with j/s disabled know if his/her password passes this check?

kh99 15 Oct 2013 19:52

Quote:

Originally Posted by Max Taxable (Post 2453637)
Right but, how will the person with j/s disabled know if his/her password passes this check?

He or she won't know until the form is submitted, then it will appear as an error (just like the existing "password fields don't match" error). On registration, it reloads the registration page and displays any errors, and on password change it tells you to press the "back" button and try again (those are the normal behaviors, I've just added additional error messages).

jpsandiego 29 Jan 2014 23:16

Any chance this plugin has been made compatible with 4.2.2 and just not uploaded? XML shows only 4.0.0 and it throws lots of errors when I override to have it try loading in 4.2.2.

Samples:
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: kh99_password_rule in ..../includes/functions.php on line 4591
Parse error: syntax error, unexpected 'kh99_password_phrase_' (T_STRING) in path/includes/class_bootstrap.php(430) : eval()'d code(72) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: kh99_password_rule in ..../includes/functions.php on line 4591
Parse error: syntax error, unexpected 'kh99_password_phrase_' (T_STRING) in path/includes/class_bootstrap.php(430) : eval()'d code(72) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: kh99_password_rule in ..../includes/functions.php on line 4591
Parse error: syntax error, unexpected 'kh99_password_phrase_' (T_STRING) in path/includes/class_bootstrap.php(430) : eval()'d code(72) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: kh99_password_rule in ..../includes/functions.php on line 4591
Parse error: syntax error, unexpected 'kh99_password_phrase_' (T_STRING) in path/includes/class_bootstrap.php(430) : eval()'d code(72) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: kh99_password_policy in ..../includes/functions.php on line 4591

kh99 29 Jan 2014 23:23

It will not work with vb4. The 4.0.0 in the xml is the first verson which is not compatible (that is, the version you have has to be less than the higher version). I was working on the vb4 version and got distracted, but since you're interested I'll try to finish it soon.

jpsandiego 29 Jan 2014 23:31

Awesome news. I was starting to look at how to upgrade plugins between the versions. Not so much my wheelhouse. Appreciate the update!

ForceHSS 29 Jan 2014 23:42

Would like to see this for 4.2.2 myself

A.Chakery 02 Feb 2014 09:35

Hello,

Thank you very much for your nice add-on,

But I have a question if you mind... I noticed that this plugin inserts needed scripts in headinclude which are not really needed in all pages of the forum but register page.

Is there any way to modify this add-on that make it to load the JS files at the Registeration page only ? (manually -or- automatically)

and I have a suggestion regarding HTML validation ,

I noticed that you inserted the "<script>" lines like this :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

which are not valid based on XHTML checks, it would be great if you edit theem and add "type Attribute" to them :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Again thank you for supporting vB3.x

kh99 02 Feb 2014 10:28

Thanks for the feedback, I will try to make those changes.

Terrablade 17 Jun 2014 03:13

yikes, Need this one for 4.2.2 is so important :/

kh99 17 Jun 2014 11:12

Quote:

Originally Posted by Terrablade (Post 2502245)
yikes, Need this one for 4.2.2 is so important :/

Yeah, I started the changes for vb4 long ago but never finished. Maybe I'll do that soon.

sinaevil 18 Jun 2014 17:11

hi kh99,
thank you for this great add-on, im wating for VB4. tnx.


All times are GMT. The time now is 02:20.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.