This topic involves user experience, which is the question of how our business system interacts with users. Common verification methods in business systems are as follows:
1) only backend service verification
That is, user input data is verified only at the business Implementation Layer Based on the business.
2) verify both the front and back ends
That is, the front-end interface layer and the back-end business Implementation Layer verify user input data based on the business.
3) Front-end verification only
That is, the user input data is verified only at the front-end interface layer based on the business. This is dangerous.
The front-end interface layer displays error messages based on the verification results. There are only the following methods:
1) only one domain is verified at a time, and an error message is displayed in the input control attachment or other locations.
2) batch verification.
Are there any better solutions? Share it.