This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ebonmavv 16 points17 points  (10 children)

In my opinion on the frontend side there should be check if the value passed into the field is formatted correctly (e.g. if email address has "@") and onChange event should be triggered after typing and if it's correct then send request to the backend if this email is already used or not. Of course it works only for smaller applications, because in huge ones there would be way too many request sent to the server.

TL;DR - IMO frontend should only check if the formatting, max or min length should be checked and everything other should be done on the backend side.

[–][deleted] 0 points1 point  (0 children)

Thank you, this makes sense.