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 MembershipProvi der
abstract class from the System.Web.Secu rity namespace. For instance, I need
to provide a method in this class for creating user as follows:
public override MembershipUser CreateUser(stri ng username,
string password,
string email,
string passwordQuestio n,
string passwordAnswer,
bool isApproved,
object providerUserKey ,
out MembershipCreat eStatus 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. 3 1961
For fields like address and phone number, I suggest you look at also
implementing a profile provider (it's not that much more work.) For
remembering profile type information, you will find that it's probably
easier than trying to shoe-horn in additional information on the user
object itself. For the password question/answer stuff -- you can feel
free to ignore the values if you dont intend to use them.
John
WB wrote: 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 MembershipProvi der abstract class from the System.Web.Secu rity namespace. For instance, I need to provide a method in this class for creating user as follows:
public override MembershipUser CreateUser(stri ng username, string password, string email, string passwordQuestio n, string passwordAnswer, bool isApproved, object providerUserKey , out MembershipCreat eStatus 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.
Ok. I'll study more about that. Thank you for your advice.
"John Murray" wrote: For fields like address and phone number, I suggest you look at also implementing a profile provider (it's not that much more work.) For remembering profile type information, you will find that it's probably easier than trying to shoe-horn in additional information on the user object itself. For the password question/answer stuff -- you can feel free to ignore the values if you dont intend to use them.
John
WB wrote: 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 MembershipProvi der abstract class from the System.Web.Secu rity namespace. For instance, I need to provide a method in this class for creating user as follows:
public override MembershipUser CreateUser(stri ng username, string password, string email, string passwordQuestio n, string passwordAnswer, bool isApproved, object providerUserKey , out MembershipCreat eStatus 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.
Thought I'd just share this insightful post which I came across. http://forums.asp.net/1069268/ShowPost.aspx
"WB" wrote: Ok. I'll study more about that. Thank you for your advice.
"John Murray" wrote:
For fields like address and phone number, I suggest you look at also implementing a profile provider (it's not that much more work.) For remembering profile type information, you will find that it's probably easier than trying to shoe-horn in additional information on the user object itself. For the password question/answer stuff -- you can feel free to ignore the values if you dont intend to use them.
John
WB wrote: 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 MembershipProvi der abstract class from the System.Web.Secu rity namespace. For instance, I need to provide a method in this class for creating user as follows:
public override MembershipUser CreateUser(stri ng username, string password, string email, string passwordQuestio n, string passwordAnswer, bool isApproved, object providerUserKey , out MembershipCreat eStatus 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Graham |
last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider"
that derives from "MembershipProvider". This providor is located in a
Businesslogic layer dll called "Enlighten.LinkMad.Businesslogic". In one of
my frontend websites I use this type to authenticate a user who is trying to
login.
The following excerpt is from the...
|
by: Shimon Sim |
last post by:
Hi
I am working on application that need to hold custom user information - Last
and first name, email, some other domain related information.
I used to create Base class for all my pages. The base class would have
CurrentUser property that would hold customer class in session and that was
fine for all my situations.
Now ASP.NET 2.0 came...
|
by: Mark Olbert |
last post by:
So far, I am more than a little underwhelmed by the Membership API in ASPNET2, and the ASP.NET Configuration wizard in VS2005. The
latter is slow as a pig whenever it does anything. Oh well, at least it's given me a chance to brush up on my Spider Solitaire game.
In any event, I am trying to implement a custom MembershipProvider for a website....
|
by: Mark Olbert |
last post by:
I'm posting this here to save other folks some hair-pulling time. No need to respond.
You can debug custom MembershipProvider and RoleProvider classes under the ASPNET Configuration tool by attaching the debugger to
the server process which generates the configuration web pages. Once you've done that you can set breakpoints in your custom...
|
by: Ben R. |
last post by:
My website uses a custome membership and role provider. I can use a custom
login control and user creation control and can debug my providers while
doing so with breakpoints. However, when I launch the asp.net website config
tool and go to the security tab, I get a polished screen with the error
message:
The object refererence is not set to...
| |
by: Mwob |
last post by:
Hi all,
I'm about to start creating a custom membership provider. Its for a
website that already has a table of users in a single table, so I need
to create a custom MP to talk to the data in that table.
In addition, my custom membership provider needs to be able to do this:
1) Hash the password.
2) Verify the strength of the pasword...
|
by: Alias |
last post by:
Hi -
I'm trying to implement a custom RoleProvider based on the SqlRoleProvider.
I keep receiving a an error that it can't load type
'MyRoleTest.MyRoleProvider' when trying to load my RoleProvider. However
this only occurs after deployment. On my local machine it works fine. So I
created the most basic role provider project I could think...
|
by: Tomasz |
last post by:
Hello Developers!
I have an interesting problem using my custom MembershipProvider,
RoleProvider and Forms Authentication.
Both MembershipProvider and RoleProvider require session state, where some
very important context data are stored during the Session_Start event. My
MembershipProvider and RoleProvider depend on this information.
...
|
by: freeflytim |
last post by:
I'm trying to implement a custom MembershipProvider (and RoleProvider)
together with a custom MembershipUser class in C#, Asp.Net 2.0, MS
Visual Studio 2005.
Everything has worked fine so far, all compiles, then I try to run the
Website administration tool (WAT). I can bring up the main web page of
the tool, but as soon as I click on...
|
by: StinkyDuck |
last post by:
Hello,
I am relatively new to ASP.NET 2.0 and have been reading a book and going
through some articles on the internet. When looking for information
regarding membership and roles, I see lots of articles utilizing the built
in profile classes in ASP.NET. In my mind this seems to be an easy way for
to get membership working in an...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |