Respect Validation DEMO

I will be deleted. :)

Backend code you can find here.

List of applied rules

All validation chains contain only default rules. For some sensitive data like password I recommend to create several custom rules, for example, to check different register, special characters and other difficulty property and don't try to make all this checks with default rules. Below is just example, I hope it will be fixed later.
  • username - v.stringType().alnum().noWhitespace().length(4, 32).Not( v.oneOf(v.equals('admin'), v.equals('root')))
  • email - v.Optional(v.email())
  • first_name - v.Optional(v.length(3, 32).alpha(' ')).set_name('First name')
  • second_name - v.Optional(v.length(3, 32).alpha(' ')).set_name('Second name')
  • personal_id - v.IntVal().positive().Min(1).set_name('Personal ID')
  • password - v.length(8, 64).Not( v.anyOf(v.lowercase(), v.uppercase(), v.IntVal(), v.alpha(), v.phone(), v.email())).alnum(' ', '!\'"#$%&''()*+,‐./:;<=>?@')
Back to docs
Made with Material for MkDocs