SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: membership

  1. #1
    SitePoint Evangelist Muller2's Avatar
    Join Date
    Feb 2005
    Location
    Oxford, UK
    Posts
    522
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    membership

    Hi,

    I have created a website, hooked up the sql db and run the asp_reg.exe to create the tables, stored procedures etc, so now I can use the 'Web Site Administration Tool' to create roles, users etc... but I want to hold more on my users than just the few fields that are out of the box. Can someone please tell me how I can go about doing this? Is there any articles that you could give me links too?

    I know the data I want to store, I'm just unsure how I can add it without messing up the login functionality etc that is already done for me.

    Also can someone tell me how I can:

    1) user the email address as the password?
    2) make the password only char and 6 in length


    Many Thanks for your time and help

    Al

  2. #2
    SitePoint Wizard bronze trophy devbanana's Avatar
    Join Date
    Apr 2006
    Location
    Pennsylvania
    Posts
    1,736
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can either use profile fields, or create a custom membership provider. You might want to look up ASP.NET profiles on Google.

    Why would you want to use the email address as the password? That doesn't make much sense, especially for security.
    Laudetur Iesus Christus!
    Christ's Little Flock
    Jesus is the Good Shepherd

  3. #3
    SitePoint Evangelist Muller2's Avatar
    Join Date
    Feb 2005
    Location
    Oxford, UK
    Posts
    522
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by devbanana View Post
    You can either use profile fields, or create a custom membership provider. You might want to look up ASP.NET profiles on Google.

    Why would you want to use the email address as the password? That doesn't make much sense, especially for security.
    Sorry I meant email address as the username

  4. #4
    SitePoint Wizard bronze trophy devbanana's Avatar
    Join Date
    Apr 2006
    Location
    Pennsylvania
    Posts
    1,736
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then I'd recommend a custom membership provider, as I'm not sure if it's possible otherwise.
    Laudetur Iesus Christus!
    Christ's Little Flock
    Jesus is the Good Shepherd

  5. #5
    SitePoint Evangelist Muller2's Avatar
    Join Date
    Feb 2005
    Location
    Oxford, UK
    Posts
    522
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    devbanana - do you know of any good tutorials for creating a custom membership provider? Is it easy?!

  6. #6
    SitePoint Evangelist Muller2's Avatar
    Join Date
    Feb 2005
    Location
    Oxford, UK
    Posts
    522
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Devbanana - i just watched the opening few mins on this Channel9 video, and he explained why you would need to us a custom membership provider. If I forgot about the email as the username and left that alone, would I need to create a custom membership provider if I wanted to store additional user data, such as postal address, age (DOB), gender etc...?

    This video: http://channel9.msdn.com/ShowPost.aspx?PostID=180276

  7. #7
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,635
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The big question here is is the additional member data effectively data the application uses or just extensions of membership information.

    If it is normal application data, then I would actually build normal tables/classes/whatevers to handle the data and relate it to members using the MemberId. If it is just extensions of the member's profile, then I would use the ProfileProvider to handle the data.

    Note that, even if it is application data, you could write a custom profile provider to save it for a user, letting you take advantage of the membership controls and such.

  8. #8
    SitePoint Zealot
    Join Date
    Dec 2004
    Location
    canada
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can make the password length change in your web.config in <form>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •