• 681 views
  • 0 comments
  • loading...

Enforces complexity requirements on a field

Enforces complexity requirements on a field (usually a password field)

requires = IS_STRONG(min=10, special=2, upper=2)

Attributes / Arguments

Minimum length of the value

requires = IS_STRONG(min=10)

Minimum number of required special characters special characters are any of the following 

!@#$%^&*(){}[]-+

requires = IS_STRONG(special=2)

Mminimum number of upper case characters

requires = IS_STRONG(upper=2)


loading...

Sources / Reference

" Web2py Book"


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)