user2652207
user2652207

Reputation: 11

Log in program on delphi with data source

I would like to know how i could create a log in program with some method of data storage that stores the login information of registered users and then accesses it when users type in their log in details for verification? I do know how to create a basic login program with labels,buttons and edit boxes but do not know how to store information about the users registered and then access this again.

Upvotes: 0

Views: 301

Answers (1)

No'am Newman
No'am Newman

Reputation: 6477

The fact that you have included the 'database' tag in your question implies that you already know what the solution is - a database. If your program already uses a database, add a table for users which includes their real name, their user name and their encoded password. Your login screen will have to query this table to check whether the user is valid. Make sure that you use parameters to the query; this way you avoid the possibility of sql injection (query 'little bobby tables').

Upvotes: 1

Related Questions