|
-
Mar 19th, 2012, 08:18 AM
#1
Thread Starter
PowerPoster
Custom Membership Provider question
Hi Guys,
I had an existing MySQL 5 database therefore I have created a custom membership provider. I am creating an application for a school. So the users can either be pupils or teachers or Administrators like myself. Now the existing users table I inherited had a field called User_Group which has a "T" if the user is a teacher. A "P" for a pupil. Or an "A" for an administrator.
I don't really like this approach. The need has arisen for me to check the user that is logged in. If it is a "Pupil" I need to display certain info.
My question is, should I implement a custom role provider for this scenario or just extend my membership class and add a property called UserGroup?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|