G
Guest
Hi,
I am revamping my company's website using .Net 2.0 & C#. I would like to
implement my own custom membership provider to manage membership information
already stored in my existing SQL 2000 database.
Therefore, I need to create a class the inherits the MembershipProvider
abstract class from the System.Web.Security namespace. For instance, I need
to provide a method in this class for creating user as follows:
public override MembershipUser CreateUser(string username,
string password,
string email,
string passwordQuestion,
string passwordAnswer,
bool isApproved,
object providerUserKey,
out MembershipCreateStatus status)
My question is, what if I have different user info fields in my database? I
don't want to use the password question and answer, but I need to store the
address, phone number of a new user. Do I just create a just dummy method
required for the implementation, and then another overload with the fields
that I need?
Thanks,
WB.
I am revamping my company's website using .Net 2.0 & C#. I would like to
implement my own custom membership provider to manage membership information
already stored in my existing SQL 2000 database.
Therefore, I need to create a class the inherits the MembershipProvider
abstract class from the System.Web.Security namespace. For instance, I need
to provide a method in this class for creating user as follows:
public override MembershipUser CreateUser(string username,
string password,
string email,
string passwordQuestion,
string passwordAnswer,
bool isApproved,
object providerUserKey,
out MembershipCreateStatus status)
My question is, what if I have different user info fields in my database? I
don't want to use the password question and answer, but I need to store the
address, phone number of a new user. Do I just create a just dummy method
required for the implementation, and then another overload with the fields
that I need?
Thanks,
WB.