You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems you are putting more emphasis on client-side validation. Even though it is a plus, server side validation is even more important, because when you're accepting user information, you should always treat is as "hostile". If that data also gets fed into a database, the server is your last line of defense because you don't want junk or invalid data in your database.
Think of a user that has javascript disabled, hence deactivating client side validation. What would happen then?
Feel free to reuse your logic from the client side validation for your server side validation too.
The text was updated successfully, but these errors were encountered:
It seems you are putting more emphasis on client-side validation. Even though it is a plus, server side validation is even more important, because when you're accepting user information, you should always treat is as "hostile". If that data also gets fed into a database, the server is your last line of defense because you don't want junk or invalid data in your database.
Think of a user that has javascript disabled, hence deactivating client side validation. What would happen then?
Feel free to reuse your logic from the client side validation for your server side validation too.
The text was updated successfully, but these errors were encountered: