2.0: ASP.NET Configuration

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R.A.M.

    2.0: ASP.NET Configuration

    Hello,
    I used ASP.NET Configuration to create a user, but I don't like the
    rules for password - "Password length minimum: 7. Non-alphanumeric
    characters required: 1."
    Can I change them? How?
    Thank you very much for your answer(s)
    /RAM/

  • Juan T. Llibre

    #2
    Re: ASP.NET Configuration

    You can change those values in your application's web.config :

    <system.web>
    <membership>
    <providers>
    <clear/>
    <add name="AspNetSql MembershipProvi der"
    ....snip...
    minRequiredNona lphanumericChar acters="2"
    minRequiredPass wordLength="12"
    />
    </providers>
    </membership>
    </system.web>

    Notice : I snipped off some properties in the "<add name... >" section,
    so that the settings you are asking about would be clearly read.





    Juan T. Llibre, asp.net MVP
    aspnetfaq.com : http://www.aspnetfaq.com/
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en espaƱol : http://asp.net.do/foros/
    =============== =============== =====
    "R.A.M." <r_ahimsa_m@poc zta.onet.pl> wrote in message
    news:b56a829bd6 dhij0fi06arq2tc of6rscajp@4ax.c om...[color=blue]
    > Hello,
    > I used ASP.NET Configuration to create a user, but I don't like the
    > rules for password - "Password length minimum: 7. Non-alphanumeric
    > characters required: 1."
    > Can I change them? How?
    > Thank you very much for your answer(s)
    > /RAM/
    >[/color]



    Comment

    • PeterKellner

      #3
      Re: 2.0: ASP.NET Configuration

      On Tue, 06 Jun 2006 08:03:43 +0200, R.A.M. <r_ahimsa_m@poc zta.onet.pl>
      wrote:
      [color=blue]
      >Hello,
      >I used ASP.NET Configuration to create a user, but I don't like the
      >rules for password - "Password length minimum: 7. Non-alphanumeric
      >characters required: 1."
      >Can I change them? How?
      >Thank you very much for your answer(s)
      >/RAM/[/color]

      You need to modify your web.config. Here is an example that I use.
      (note the minRequiredNona lphanumericChar acters setting)

      ....
      <roleManager enabled="true"/>
      <membership>
      <providers>
      <remove
      name="AspNetSql MembershipProvi der"/>
      <add
      name="AspNetSql MembershipProvi der"
      type="System.We b.Security.SqlM embershipProvid er,System.Web,
      Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
      connectionStrin gName="LocalSql Server" enablePasswordR etrieval="false "
      enablePasswordR eset="true" requiresQuestio nAndAnswer="tru e"
      applicationName ="/xxxr" requiresUniqueE mail="false"
      minRequiredPass wordLength="1" minRequiredNona lphanumericChar acters="0"
      passwordFormat= "Hashed" maxInvalidPassw ordAttempts="5"
      passwordAttempt Window="10" passwordStrengt hRegularExpress ion=""/>
      </providers>
      </membership>
      </system.web>
      Peter Kellner

      Comment

      Working...