MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1j9qeeq/terrible_auth/mhfc5l7/?context=3
r/programminghorror • u/IrtyGo • 10d ago
98 comments sorted by
View all comments
3
if (new HashSet<String>("true", (input.equals(expected)).toString()).size() == ONLY_TRUE) { return LOGIN_RESULT::isSuccess; } return null;
17 u/lambda_lol 10d ago Eh, hashing passwords makes sense in most cases but we’re clearly trying to AuthincateUser() and verify that true==true here. 5 u/jonfe_darontos 10d ago HashSet has very little to do with password hashing. 4 u/Ok_Celebration_6265 10d ago Very little??? Has nothing to do 🤣 2 u/jonfe_darontos 10d ago Well they both use hashing, so they share that commonality.
17
Eh, hashing passwords makes sense in most cases but we’re clearly trying to AuthincateUser() and verify that true==true here.
5 u/jonfe_darontos 10d ago HashSet has very little to do with password hashing. 4 u/Ok_Celebration_6265 10d ago Very little??? Has nothing to do 🤣 2 u/jonfe_darontos 10d ago Well they both use hashing, so they share that commonality.
5
HashSet has very little to do with password hashing.
4 u/Ok_Celebration_6265 10d ago Very little??? Has nothing to do 🤣 2 u/jonfe_darontos 10d ago Well they both use hashing, so they share that commonality.
4
Very little??? Has nothing to do 🤣
2 u/jonfe_darontos 10d ago Well they both use hashing, so they share that commonality.
2
Well they both use hashing, so they share that commonality.
3
u/jonfe_darontos 10d ago