Trying to validate the login.
Validation consists of 3 parts.
- Login verification for characters
- Login verification through regular expression
- Sending data to the server and checking the busy login.
It may be such a situation that until the answer comes from the server, the user deletes several characters and the check will return an error according to item 2 (Login verification through regular expression)
Can I somehow cancel the request to the server at this moment?
Edit (more details)
Login has 4 states:
- Empty
- Does not fit
- Free
- Busy
Each of the 4 states has its own string parameter. The first two checks pass locally. If they have passed a request is sent to the server.
Block UI is not desirable.