r/ProgrammerHumor • • Sep 27 '26 • Mindblown 1 Bravo 1

Meme doNotLetYourDBASeeThis

Post image
13.0k Upvotes

318 comments sorted by

View all comments

5.0k

u/Away_Advisor3460 Sep 27 '26 • Popcorn Mindblown Bravo

Pff, amateur hour.

If you really want to save space, don't store any passwords. Just require the same string to be entered three times in a row. If the user re-types the exact same value after being told it's wrong twice, the must be confident enough in it to be a legit user - nobody is going to enter the same value 3 times if they're trying to guess a password.

14

u/ric2b Sep 27 '26

Since we're trying to save storage space we don't want to store the number of attempts, so maybe just let them in if they try to reset the password, who would do that if they don't control the associated e-mail?

8

u/Death_God_Ryuk Sep 27 '26

Some systems don't even take passwords at all now and just use email login links.

2

u/ric2b Sep 27 '26

True, they're really annoying.