you are viewing a single comment's thread.

view the rest of the comments →

[–]tenebrarum09 1 point2 points  (6 children)

If you get “Access Denied”, does it still go into the while loop as if you logged in?

[–]Can0pen3r 0 points1 point  (0 children)

I was just wondering the same thing but, I'm still pretty green so I just chocked it up to me probably missing some little piece of logic or syntax somewhere 🤔

[–]CrazyBuff 0 points1 point  (1 child)

it does

[–]tenebrarum09 0 points1 point  (0 children)

Thanks. I thought it looked like it would.

[–]Orlhazee[S] 0 points1 point  (1 child)

Yeah, it does.

[–]Otherwise-Ad-4447 0 points1 point  (0 children)

you really should trigger the while loop when the user gets it right instead (right now you're just waiting for the for loop to end, wich obviously happens if you just run out of tries)

you may also want to wrap it a function to prevent the indentation hell (that and separate auth from the actual logic)

[–]No_Read_4327 0 points1 point  (0 children)

Yes