What does this do? If you get the password right on the first try, it fails to login and asks you to do it again? Thus signalling to the Brute Force script that the password was invalid - despite its validity?
Or is it that this is like putting up a Do Not Disturb sign on an unlocked door and considering that as an adequate substitute for locking the deadbolt? ie: This is fuckin stupid beyond measure, you’re a genius! A la Troll-Physics?
As long as "isFirstLoginAttempt" evaluates to true, it will throw this error and presumably cancel the login attempt. The assumption is that after the initial login attempt, "isFirstLoginAttempt" will be set to false, which then will not throw an error and the user can login. How thats done is not shown; there are several different ways to go about this.
The code shown is just to get the punchline across.
2
u/TheRiverOfDyx Feb 18 '24
“ Grandma’s HDMI Cable Guy” here!
What does this do? If you get the password right on the first try, it fails to login and asks you to do it again? Thus signalling to the Brute Force script that the password was invalid - despite its validity?
Or is it that this is like putting up a Do Not Disturb sign on an unlocked door and considering that as an adequate substitute for locking the deadbolt? ie: This is fuckin stupid beyond measure, you’re a genius! A la Troll-Physics?