1021
submitted 1 year ago by anders@rytter.me to c/memes@lemmy.ml

Brute force protection

@memes

you are viewing a single comment's thread
view the rest of the comments
[-] reflectedodds@lemmy.world 17 points 1 year ago

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 1 points 1 year ago

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

Something like that.

this post was submitted on 13 Mar 2024
1021 points (96.9% liked)

Memes

50497 readers
258 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 6 years ago
MODERATORS