1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Bay Area California
    Rep Power

    Need a good "password create/change" validation script

    I am looking for help from anyone who may have some code snippets, examples, or ideas for building a generic password creation/modification script.

    Currently in my system a user's password expires after 90 days (dates stored in MySQL). I would like to have code to do the following edits:
    • Cannot match old password (got this one!)
    • must be between six characters and fifteen (I can do this too).
    • Must not contain spaces, tabs, or line returns (special characters)
    • must contain at least one numeral in the six digits (preg_match() maybe?)

    Those are the basic principals I want to enforce in password creation/modification.

    Thanks for any help
  2. #2
  3. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Austin, TX
    Rep Power
    Moved to Scripts forum
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
    The Most Important Article You Can Read as a Developer

IMN logo majestic logo threadwatch logo seochat tools logo