password constraints

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Wondering if someone could point me to a piece of code that checks to
see if password being created is at least 8 char long and has a number
and a special character...

Re: password constraints

Pakku wrote:
Quoted text here. Click to load it

Hi Paku,
You want to look at regular expressions

I've found this to be useful in learning regular expression syntax as well /

The alternative method is to use a whole heap of strpos and check if the
result !== false

Hope this helps, Cheers
Leigh Finch

Re: password constraints

Quoted text here. Click to load it

Thanks-  I had just stumbled across that regular-expressions link in a
different context and was planning on reading it.  This is
synchronicity- I must read it now!

Site Timeline