I'm only partially understanding what's going on. I'm not getting any errors so I don't know how to fix this issue. It's not letting me type a password unless I get the username wrong.
I had to modify it slightly to fit my current project. this is what I have:
EDIT: (this stuff down here and multiple grammer fixes)
The blank password fields were just displayed and passed by like it's hitting enter for me or something, and the Too many attempts have been made! Exiting... didn't even exit.
Please, if anyone can help me with this! And explain in detail, so I know why this is happening, please?
Calling main() recursively? Not cool, you need to fix this.
You're reading the user id and password using two different methods. The first time you call getPASS(), it sees the unprocessed <CR> left over from reading the user id followed by <CR>. So it returns immediately with an empty string.