search

Home  >  Q&A  >  body text

Why does the server verify that the form is empty and the client still needs to verify it?

I see that the server has verified that the user's account and password are empty. Why does the client's js have to verify whether the form is empty? I don’t understand!

꯭J꯭i꯭m꯭꯭J꯭i꯭m꯭1989 days ago1432

reply all(2)I'll reply

  • 像风一样自由

    像风一样自由2019-08-03 16:04:51

    Double verification is required for security. On the one hand, js verification is to provide a better user experience. On the other hand, if the verification fails, you can skip the procedure and save server-side expenses.

    Another program verification is a must. Yes, I can directly use a program to simulate your form submission without going to your front-end page. Do you understand?

    reply
    0
  • ꯭J꯭i꯭m꯭

    Thank you, understood!

    ꯭J꯭i꯭m꯭ · 2019-08-14 15:46:51
  • Cancelreply