Answer the question
In order to leave comments, you need to log in
Is it safe to use AJAX to validate authorization data?
Welcome all.
The site has an authorization form, however, when entering incorrect user data, it simply redirects to the same page with authorization, but in addition to this, a GET parameter of the error type (url.com/auth?error) is also transmitted, which the script determines and already displays a message about that the data is incorrect. Is it safe to use AJAX to validate the data before submitting the form, so that, for example, you can notify the user that the data is incorrect without a redirect and unnecessary parameters in the address bar?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question