Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client vs Server side validation #44

Open
n1c0z opened this issue Aug 17, 2018 · 0 comments
Open

Client vs Server side validation #44

n1c0z opened this issue Aug 17, 2018 · 0 comments

Comments

@n1c0z
Copy link

n1c0z commented Aug 17, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant