Simple Password Authentification

  • Thread starter Thread starter Newbie!
  • Start date Start date
N

Newbie!

Hi Group,

I have VB.NET and wanted to build a simple User/Password Login for My App.

I have a Database with 3 Field, PrimaryID, UserName & Password. I want to be
able to have a ComboBox look at the UserField and then the User type in the
Password, how would I do something like this?

Does anybody know of any Example anywhere?

Any help Much Appreciated

Ta
Si
 
Hey

On a VB form place a combo box for the user names and a
text bot for the password and a command button for login

On the form load event connect to ur database and retrive
the user names from the respective field and populate the
user names to the combo box.
On the command click event write the following code for
authentication:

dim Pwd as string
Pwd=[GET THE password of the user from the database by
SQL query]
if TxtPassword(Password text box).Text=Pwd then
Successful Authentication
else
TRy again
End if
 
Back
Top