Image transcripion: shows a red sign with white text that says “STRICTLY NO ACCESS” mounted on a metal gate. The gate appears to be part of a fence around a park, with trees visible in the background but there is no fence around the gate or anywhere else


(Originally published earlier today on mastodon.social)

  • bleistift2@feddit.de
    link
    fedilink
    arrow-up
    14
    ·
    5 months ago

    There’s a difference between ‘I would rather the user didn’t do that’ and ‘We must not allow this to happen’.

    User enters the empty string for their password recovery question? Don’t care. Let the Frontend handle this. If the user is capable enough to disable the frontend validation, they’re capable to remember their password.

    User enters SQL as their password recovery question? Validate in the backend.

    • XTornado@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      The issue with your example is that it could be that there was a bug and the user didn’t disable the validation and intend to send an empty string.