Membership Login with email

Last post 06-20-2006 2:54 PM by torchit. 4 replies.

Sort Posts:

  • Membership Login with email

    06-08-2004, 7:37 AM
    • Member
      247 point Member
    • vankampenp
    • Member since 01-27-2004, 2:33 PM
    • Posts 50
    How can I configure the membership in a way that I can use the email address as the login name? I do not want to prompt for both login name and email.
    I thought about not requiring the email and changing the User Name lable to read "Email", but than I can not use the email functionality of the build in controls.

  • Re: Membership Login with email

    06-08-2004, 8:29 AM
    • All-Star
      29,644 point All-Star
    • Fredrik N
    • Member since 06-22-2002, 5:03 AM
    • Sweden
    • Posts 5,334
    • TrustedFriends-MVPs
    You can for example create your own Membership provider for that.
    /Fredrik Normén - fredrikn @ twitter

    ASPInsider

    Microsoft MVP, MCSD, MCAD, MCT

    ASPInsiders
    My Blog
  • Re: Membership Login with email

    06-08-2004, 9:10 AM
    • All-Star
      29,644 point All-Star
    • Fredrik N
    • Member since 06-22-2002, 5:03 AM
    • Sweden
    • Posts 5,334
    • TrustedFriends-MVPs
    You can also build your own user administration page, where you call the
    Membership.CreateUser(string username, string password, string email) method and pass the username into the email argument. Or use the CreateUserWizard control.

    If you want to use the ASP.Net Web admin site, you can modify the code in the add user page(Inetpub\wwwroot\aspnet_webadmin\2_0_40426\Security\Users\addUser.aspx). The Web Admin tool.
    /Fredrik Normén - fredrikn @ twitter

    ASPInsider

    Microsoft MVP, MCSD, MCAD, MCT

    ASPInsiders
    My Blog
  • Re: Membership Login with email

    06-09-2004, 6:19 AM
    • Member
      247 point Member
    • vankampenp
    • Member since 01-27-2004, 2:33 PM
    • Posts 50
    Thanks Fredrik, I think I will use this second option.
  • Re: Membership Login with email

    06-20-2006, 2:54 PM
    • Member
      15 point Member
    • torchit
    • Member since 06-20-2006, 2:37 PM
    • Posts 3
     
    However, it only deals with the login control (validating user against email) and assumes that a membership database already in place. In vankampenp's case (my case as well), the "CreateUserWizard" needs to be customized too so the membership database thus created has a different schema than the default, namely, having Email in the place of User Name.
     
    Can anyone shed some lights or point a direction? Thanks.
Page 1 of 1 (5 items)