#need help with while loop for a login() function ***

30 messages · Page 1 of 1 (latest)

fringe glade
slow laurelBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

fringe glade
#

It is meant to ask 'Enter password' once again until they get it right, it allows them to re-enter their username so not sure why this doesn't work despite the fact that I use the same logic?

warm bone
#

you can remove that btw

#

And I cant find the "do you want to enter in transfer?" printing anywhere in the wandbox

#

If you enter the correct username inside loginUsers() you will also break the loop. So why have the while(correctUsername == true)?

warm bone
# fringe glade

So when I'm testing the code it's impossible to get what you send here

merry rampart
#

u should hash the password.

fringe glade
fringe glade
fringe glade
#

Idk why on wandbox when it runs it doesn't work properly but when I run it out visual studio there are no errors.

#

Instead now after I've made the changes you told me to, it is no longer asking to enter in the password... it just stops the program after the username

#

need help with while loop for a login() function ***

fringe glade
#

Once I enter the username, it exits?

proper stream
#

use the debugger, see what it's doing

proper stream
#

and just a basic hash isn't at all secure, you need an actual proper salted encryption mechanism like bcrypt2 or argon2

fringe glade
#

i can't even get the while loop to work.. lol

proper stream
#

all it does is slow down the attackers, it doesn't stop them

#

and this is why everyone should always use strong passwords, and they should always be different for every site/service you use

#

of course, 90% of the population still just does password1 or admin123 staff

fringe glade
slow laurelBOT
#

This question is being automatically marked as stale.
If your question has been answered, run !solved.
If your question is not answered feel free to bump the post or re-ask.
Take a look at !howto ask for tips on improving your question.

fringe glade
#

bump

#

!solved