Subject: How to create the login
Posted By: curiaquita Post Date: 5/16/2008 9:52:40 AM
Hi Guys,

Can you help me how to create a username and password so that anybody who want access the vb.net program login first.
Thanks,
Curiaquita

Reply By: BrianWren Reply Date: 5/16/2008 4:01:27 PM
What does your program do?  The answer to that question might make some approches better for you than others.

Does it use a database?
If so, what kind (Oracle?  SQL?  Access?)?
Will this program be loded on the machine where each person uses it, or will it be on a network server?
Is it Web-based or windows forms-based?
Reply By: curiaquita Reply Date: 5/20/2008 1:02:32 PM
Hi Brian Wren,
The program is windows based-application and will use microsoft access to store the login details for each user who shall use the program. Users must login first before start using the program.

Any help will be appreciated.

Thanks,

Curiaquita

Reply By: BrianWren Reply Date: 5/23/2008 2:58:54 PM
Create a table in Access, holding the login info.  (You might want to build your own encryption routine to make these values hard to decypher.)
When a user logs in (that is, fills in a username and password textbox), try to open a recordset on that table
...
"WHERE USERNAME = """ & UName.Text & """ " & _
"  AND PASSWORD = """ & PWord.Text & """"
If the recordset is empty, they don't get logged in.
Reply By: curiaquita Reply Date: 6/4/2008 7:13:54 AM
Hi Brian,
Thank you for your help. I will do that.




Go to topic 71842

Return to index page 1