When a user registers or update his account, application uses the user registration API. It is common for the user interface to enforce the data entry rules and validate the values entered by the user. However, an alternative approach is to perform data validation on the server. Backendless supports user properties validation on creating and updating user objects using regular expressions. Backendless console includes several pre-configured regular expressions for the most common data types, such as email address, URL, social security number and US phone number. Additionally, app developer can specify their own regex. To configure a validator for a user property:
- Login to Backendless console, select an app and click the Users icon.
- The User Properties section includes the validator “column”. Select one of the pre-configured validators from the drop-down list or choose custom and enter your own regular expression: