• yaroto98@lemmy.org
    link
    fedilink
    English
    arrow-up
    21
    ·
    10 months ago

    Jr developer told to sanitize inputs to keep db secure. Comes up with this.

    • madcaesar@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      10 months ago

      That’s not the front-end job. You can do common sense stuff, but any real protection needs to be on the backend. Any front end validation is basically “plz don’t hax”

      • Matty_r@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        10 months ago

        Frontend validation is for real time user feedback (without hitting the backend constantly) instead of needing to submit the form before throwing an error/warning.