Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. AspNetSqlMembershipProvider Question

AspNetSqlMembershipProvider Question

Scheduled Pinned Locked Moved ASP.NET
csssecurityquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Clayton Q
    wrote on last edited by
    #1

    Hi guys. I used AspNetSqlMembershipProvider to create the membership system for one of my sites. It isn't working consistently. I'd like to change some of the settings I originally chose in my web.config. I'm worried that if I do this it will screw up the accounts that have already been created. I need advice about the best way to go about this. Currently, I have this: <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" minRequiredNonalphanumericCharacters="0" maxInvalidPasswordAttempts="4" passwordAttemptWindow="10" /> </providers> </membership> I'd like to change it to this: <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Clear" minRequiredNonalphanumericCharacters="0" maxInvalidPasswordAttempts="4" passwordAttemptWindow="10" /> </providers> </membership> I'm worried that changing from hashed passwords to clear passwords and getting rid of require question and answer now that 100 or so users have already signed up will hose all the previous accounts and make it impossible for them to log in. The reason I'm doing this is that users are complaining about intermittent problems with my CreateAccount, RecoverPassword, and ChangePassword controls, which are set up with default controls. I haven't done anything fancy that should screw them up. I feel like the most exotic part is the portion of the web.config I shared with you. I feel like if I make that less complicated it might solve all my problems. But

    E C 2 Replies Last reply
    0
    • C Clayton Q

      Hi guys. I used AspNetSqlMembershipProvider to create the membership system for one of my sites. It isn't working consistently. I'd like to change some of the settings I originally chose in my web.config. I'm worried that if I do this it will screw up the accounts that have already been created. I need advice about the best way to go about this. Currently, I have this: <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" minRequiredNonalphanumericCharacters="0" maxInvalidPasswordAttempts="4" passwordAttemptWindow="10" /> </providers> </membership> I'd like to change it to this: <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Clear" minRequiredNonalphanumericCharacters="0" maxInvalidPasswordAttempts="4" passwordAttemptWindow="10" /> </providers> </membership> I'm worried that changing from hashed passwords to clear passwords and getting rid of require question and answer now that 100 or so users have already signed up will hose all the previous accounts and make it impossible for them to log in. The reason I'm doing this is that users are complaining about intermittent problems with my CreateAccount, RecoverPassword, and ChangePassword controls, which are set up with default controls. I haven't done anything fancy that should screw them up. I feel like the most exotic part is the portion of the web.config I shared with you. I feel like if I make that less complicated it might solve all my problems. But

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      I'm sure there must be a way of doing this through code rather then editing the xml file, trying searching the web for c# code to update membership login

      C 1 Reply Last reply
      0
      • E eyeseetee

        I'm sure there must be a way of doing this through code rather then editing the xml file, trying searching the web for c# code to update membership login

        C Offline
        C Offline
        Clayton Q
        wrote on last edited by
        #3

        I'd be willing to do that if there is an advantage. But if it's all the same, I'd much rather edit a configuration file than write code.

        1 Reply Last reply
        0
        • C Clayton Q

          Hi guys. I used AspNetSqlMembershipProvider to create the membership system for one of my sites. It isn't working consistently. I'd like to change some of the settings I originally chose in my web.config. I'm worried that if I do this it will screw up the accounts that have already been created. I need advice about the best way to go about this. Currently, I have this: <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" minRequiredNonalphanumericCharacters="0" maxInvalidPasswordAttempts="4" passwordAttemptWindow="10" /> </providers> </membership> I'd like to change it to this: <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <remove name="AspNetSqlMembershipProvider" /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Clear" minRequiredNonalphanumericCharacters="0" maxInvalidPasswordAttempts="4" passwordAttemptWindow="10" /> </providers> </membership> I'm worried that changing from hashed passwords to clear passwords and getting rid of require question and answer now that 100 or so users have already signed up will hose all the previous accounts and make it impossible for them to log in. The reason I'm doing this is that users are complaining about intermittent problems with my CreateAccount, RecoverPassword, and ChangePassword controls, which are set up with default controls. I haven't done anything fancy that should screw them up. I feel like the most exotic part is the portion of the web.config I shared with you. I feel like if I make that less complicated it might solve all my problems. But

          C Offline
          C Offline
          Clayton Q
          wrote on last edited by
          #4

          Turns out, the CSS Friendly Adapters are incompatible with the Membership system. I didn't have to remove the adapters completely, I just turned them off on the relevant three pages. Now it seems to work. Thanks!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups