user is to be created using custom controls - not using createuserwizard control but using login control and password recovery control

Last post 08-17-2009 7:04 PM by Bobby-Z. 3 replies.

Sort Posts:

  • user is to be created using custom controls - not using createuserwizard control but using login control and password recovery control

    07-04-2009, 3:05 AM
    • Member
      36 point Member
    • marinajogy
    • Member since 09-21-2008, 10:04 AM
    • Goergia
    • Posts 169

    I am using  aspnet Membership for user management,

    but user is to be created using custom controls - not using createuserwizard control

    but using login control  and password recovery control

    my problem: is it really possible, then how?

    password and password answer is seen as encrypted in the databaae (I already created

    aspnet_users,aspnet_membership etc tables using the aspnet_regsql utility)

    when I using custom code to insert data into these tables how can I get UserId?

    which algorithm is to be used to encrypt password

    see my webconfig - relevent portion


    <membership defaultProvider="SqlProvider">
          <providers>
            <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider,System.Web, Version=2.0.3600.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
             connectionStringName="connectionString" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true"
             applicationName="/" requiresUniqueEmail="true" passwordFormat="Encrypted"
             description="Stores and retrieves membership data from a Microsoft SQL Server database."/>
          </providers>
        </membership>
        <machineKey validationKey= "88B4F4E68FF634B4DE1C0B4E31509B9C2F8AA1CA8990CDA6A8891842AA9CCFB56A6C25258181CEBFE1E9CDD192B502A899C0E0CC4C0A242AE2B81A11AC518D91"
        decryptionKey= "B32E80A40DB95DC764304D86B9C948B95797EB9F41867B764196485F2174E641"  
        validation="SHA1" decryption="AES"/>

  • Re: user is to be created using custom controls - not using createuserwizard control but using login control and password recovery control

    07-05-2009, 1:17 AM
    • Member
      650 point Member
    • Bobby-Z
    • Member since 10-04-2008, 1:53 AM
    • Orange County, CA
    • Posts 297

     Is it that you want to create your own form with custom parameters, but still want to use the asp.net Membership Part?

    I have a posting in this section about doing just that it took me 3 weeks to patch together from various tutorials and vidoes before i threw away the createuser which is great but has limitations for real world application, like for people like me who want names and addresses.

    http://forums.asp.net/t/1375441.aspx

    The last post on the page is my final code

    The first section is how to bypass the automatic settings of the createuser and add them to your custom form, the second is entering the additional information into a separate table in the database and assign a role at the same time.

    If you need further help, keep posting here.

    This will still keep the password recovery and login controls useable on your site

    "Success is the Sum of Small Efforts, Repeated Day in and Day Out - Without Ceasing!"

    Robert Hall
    CEO and Founder
    My Service Solutions, Inc.
  • Re: user is to be created using custom controls - not using createuserwizard control but using login control and password recovery control

    07-05-2009, 1:48 AM
    • Member
      36 point Member
    • marinajogy
    • Member since 09-21-2008, 10:04 AM
    • Goergia
    • Posts 169

    Kindly read my post once again,

    I don't want to use createuserwizard, but using my custom markup and code=behind

    i want to insert data into membership schema tables

    how can do? it is the problem - encrypting password and using password salt, encrypted answer

    are giving me headache

  • Re: user is to be created using custom controls - not using createuserwizard control but using login control and password recovery control

    08-17-2009, 7:04 PM
    • Member
      650 point Member
    • Bobby-Z
    • Member since 10-04-2008, 1:53 AM
    • Orange County, CA
    • Posts 297

     use the link above using the codebehind I have used, it uses the ASP membership class and records the info into the ASPNETDB., all while NOT using the create user wizard

    "Success is the Sum of Small Efforts, Repeated Day in and Day Out - Without Ceasing!"

    Robert Hall
    CEO and Founder
    My Service Solutions, Inc.
Page 1 of 1 (4 items)