A
A
Anton2021-11-26 06:41:53
C++ / C#
Anton, 2021-11-26 06:41:53

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

1 answer(s)
A
Alexander, 2021-11-26
@NotYourPie

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 question

Ask a Question

731 491 924 answers to any question