Hacker News new | past | comments | ask | show | jobs | submit login
Tell HN: Please stop blocking my form submissions with client-side validations
6 points by zachallaun on March 17, 2023 | hide | past | favorite | 2 comments
Okay, I’m not talking to _you_ specifically (unless I am), but for the love of whatever gets you up in the morning: stop blocking form submissions with client-side validations.

It absolutely blows my mind how frequently I cannot submit login forms after auto-filling from a password manager. I’ve gone as far as to memorize the last character of some randomly generated passwords for certain offenders because I have to literally delete the last autofilled character and then retype it to remove the “you must enter a password” validation.

Seriously, just stop disabling forms on the client-side! Your server _needs_ to handle these cases anyways. Just let me idiotically submit my autofilled password and then yell at me later if it’s really not there.

Thank you.




At least for us, all the translation stuff is frontend, so returning errors from the server is not straightforward. We backend people don't want to deal with anything user related. Sure, the backend needs to validate that it exists/is safe, but it probably doesn't do any of the other validations.


The problem is not the validation but how it’s handled. A client should allow any input to the server and just inform the client that it‘s erroneous. If the input isn’t valid the server will know it. If not that’s a bug.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: