Brute force protection

@memes

  • reflectedodds@lemmy.world
    cake
    link
    fedilink
    arrow-up
    17
    ·
    1 年前

    Like the other person said, it’s not meant to always fail the first time you enter any password.

    It is meant to fail the first time you enter the correct password.

    • winterayars@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      1 年前

      So it should be: if password == correct and first_success == true then { login failure; first_success = false }

      Something like that.