phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Password strength

Goto page Previous  1, 2
 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: Sun Mar 08, 2009 4:29 pm 
Post subject: Re: Password strength

I just tested it and it seems a bit more restrictive, it's just a matter of tweaking it a bit more until it suits your needs.

I just found that you can also add negative points, like
Code:
        if (pw_to_check.length < minlength_to_check)
         {
            counter_to_check = counter_to_check - 1;
         } 

This will take off points as long as a minimum of 6 characters is not reached.
I placed it like this
Code:
         var minlength_to_check = 6;
         if (pw_to_check.length < minlength_to_check)
         {
            counter_to_check = counter_to_check - 1;
         }     
         if (pw_to_check.length >= minlength_to_check)
         {
            counter_to_check = counter_to_check + 1;
         }
at the very beginning of all the if statements.
_________________
phpBB2 will never die, I hope!
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 2 of 2 All times are GMT
Goto page Previous  1, 2
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0269 seconds using 15 queries. (SQL 0.0019 Parse 0.0008 Other 0.0242)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo