Is it possible to use data validator’s for the “password” property in the User table?
I want to enforce a minimum length of 6 characters so I tried .{6,} and [A-Za-z0-9]{6,} but I was able to successfully register both times with passwords less than 6 characters. However, if I set it to something more simple like \d\d\d I would get the error “Validation for the password property failed. Property value does not match the required pattern.” even with the passwords 11 and 111.
I tried to enter {6,} into the validator field on the password column in the schema editor on the user table and it gave me an error “RegExp is invalid”. How can I make this work?
The error “RegExp is invalid” usually happens if the regex pattern is not recognized by the validator. Backendless currently supports a subset of JavaScript regex syntax—sometimes non-alphanumeric or more complex patterns might be rejected.
For your use case of a minimum password length of 6 characters, the pattern should be:
.{6,}
Double-check that there are no spaces or additional characters. Just enter the pattern above directly.