Results 1 to 2 of 2

Thread: Need passwords to be 9 minimum characters

  1. #1
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need passwords to be 9 minimum characters

    We have a form and we want the passwords to be 8 character minimum with 1 sysbol/number. How can we enforce this?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't know what your level of expertise with javascript is, but if you know how to get the value you could use a regular expression to test it. Now I'm assuming that what you really mean though is at least 9 characters, no spaces, with at least one non-space, non-letter character. What you described in your post seems to require 8 letters followed by one non-space, non-letter character.

    So let me know if I have the requirements right or not, and if you at least have the basic knowledge to access the value attribute of the password field for evaluation or not, and I can make something up for you.

    Whatever you do though, if this page can be accessed without javascript enabled, you must also check the validity of the password format on the server side.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •