Spring Security project. The database has a unique column by name. If a new user is registered under the existing nickname, then we get:
whitelabel eror.
What is logical. I want to ask, where is the best place to check for the existence of the Login field? In the servlet, when we create a new user? Or maybe the script from the page itself should go to the MySQL database and check when the user types the login?
exceptionexistence of a login). - MrFylypenko