Micro Niche Builder
Closed Thread
Results 1 to 5 of 5

Thread: check password length

  1. #1

    Default check password length

    I want to check password length that should be minimum 6 characters long .
    How can i do that?


  2. Micro Niche Builder

  3. #2
    Mr. BindasS ankur0412 is on a distinguished road ankur0412's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    717
    Thanks
    24
    Thanked 54 Times in 42 Posts
    Blog Entries
    2

    Default

    u can use the password.length feature of javascript to calculate the length and then compare it using if-else conditional statement...

  4. #3

    Default

    function checkStrong(sPW){
    if (sPW.length<=4)
    return 0;
    Modes=0;
    for (i=0;i<sPW.length;i++){
    Modes|=CharMode(sPW.charCodeAt(i));
    }
    return bitTotal(Modes);
    }
    Best swiss mado watches site for sale!

  5. #4

    Default

    If you just want to check the length then use length property to check the length of the text in textbox

  6. #5

    Default

    If your issue is still not resolved, you may try this:

    var password = "password";
    var passed = validatePassword(password, {
    length: [6, Infinity],
    lower: 1,
    upper: 1,
    numeric: 1,
    special: 1,
    badWords: ["password", "steven", "levithan"],
    badSequenceLength: 4
    });
    // passed: false
    Let me know, if you would need any further help.

Closed Thread

Similar Threads

  1. What's an ideal blog post length?
    By Kay in forum WordPress Blog Forum
    Replies: 9
    Last Post: 08-19-2009, 01:21 AM
  2. Yahoo Password
    By rockon in forum Yahoo
    Replies: 14
    Last Post: 06-15-2009, 10:09 AM
  3. Check for bad neighborhood.
    By freezer in forum Web Directories
    Replies: 2
    Last Post: 01-21-2009, 02:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts