Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hello, on register.php in this code:

Code: Select all
Password:<br />
<cms:input name='extended_user_password' type='bound' /><br />

Repeat Password:<br />
<cms:input name='extended_user_password_repeat' type='bound' /><br />


How can I add requirements so the account cannot be created unless these fields meet the requirements of:

Code: Select all
validator='alpha_num | min_len=8 | max_len=14'


I tried something like this but that did not work:

Code: Select all
Password:<br />
<cms:input name='extended_user_password' type='bound' validator='alpha_num | min_len=8 | max_len=14' /><br />

Repeat Password:<br />
<cms:input name='extended_user_password_repeat' type='bound' validator='alpha_num | min_len=8 | max_len=14' /><br />


Ty
See how it is done in the Advanced Tutorial https://www.couchcms.com/docs/advanced- ... index.html
Zip: http://www.couchcms.com/docs/code/advan ... l/site.zip

A good example of register and validation is in users/signup.php from the zip.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
2 posts Page 1 of 1