Answer the question
In order to leave comments, you need to log in
How to do a validation of authorized users using a loop?
Write a code to verify that a username and password are entered, which you then need to check with already registered users. If there is a match, then "login completed successfully", otherwise "Login failed! Invalid username or password!"
Answer the question
In order to leave comments, you need to log in
And what about the cycle? Usually, logins and passwords (more precisely, their hashes) are stored in the database. When entering a login / password, the presence of such a user in the database is checked (by SQL query) and if there is one, then the hash of the entered password is compared with the hash in the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question