existsman
existsman

Reputation: 39

Create administrator rights in vb.net

I have wanted to ask. I have a table tlogin. user_nm the first field and second field pass. so when the login form, if I login as admin then there is a special menu for admin.

how to manage it? please help

ow....ya, I using access for database

Thx b4

Upvotes: 0

Views: 747

Answers (1)

DarinH
DarinH

Reputation: 4879

Usually, you'd use a flag or secondary table related to each user to indicate what "rights" the user has. For instance, if using bit flags, you might have an extra field in your user table called IsAdmin, which would contain true if it's an administrative user, false if not.

Then, once the user has logged in and you've validated the password, you can check the IsAdmin field, and if true, allow them access to the appropriate functions.

that's a simplistic method but it would work. You normally WOULD NOT want to base rights solely on the user's name.

Upvotes: 1

Related Questions