Forums

Password field - alphanumeric with minimum lenght

klox7 28 Jul, 2015
Hello,

during user registration with ChronoForms I would like to check if user has entered in password field 8 characters and that at least one is number. I found that I can validate the length of a text input with
validate['length[min,max]']
but I don't know how to check if password has at least one number. Regarding lenght validation I would like to know if I can leave max value empty?

Regards
GreyHead 28 Jul, 2015
Hi klox7,

I don't know if you can leave max empty - you can set it to say 999.

You'd probably need to set a Custom validation to check for one number. Or better, see this FAQ

Bob
klox7 28 Jul, 2015
Hi,

thank you. I will look into it. It would be even better if CF would somehow use built in Joomla 3 password checker in user component.

Regards
GreyHead 28 Jul, 2015
Hi klox7,

IIRC I looked at those a while ago and couldn't see an easy way of making use of them :-(

Bob
This topic is locked and no more replies can be posted.