mercredi 31 décembre 2014

Input pattern for password submits with empty input

I have this pattern for html input password (UpperCase, LowerCase, Number/SpecialChar and min 8 Chars)



(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$


The form submits with an empty input, how can I prevent this from happening?


Aucun commentaire:

Enregistrer un commentaire