Pregunta

Estoy usando la membresía ASP.NBET que le brinda la opción de hacer cumplir una longitud de contraseña MIN y los caracteres numéricos mínimos. ¿Puedes definir a otros como debe haber un carácter de caso superior, etc.?

salud

¿Fue útil?

Solución

It looks like the only other option is minRequiredNonAlphanumericCharacters, so no. But that doesnt stop you from putting a validator on the Login control password field.

Otros consejos

There is also the ability to use a Regex against the password. The below is taken from this blog has some details:

http://weblogs.asp.net/pleloup/archive/2005/12/05/432359.aspx

Using regular expression

<membership ...>
  <providers>
    <add passwordStrengthRegularExpression= 
                "^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$" .../>
  </providers>
</membership>

Using minimum length and non-alphanumeric character

 <membership ...>
  <providers>
    <add minRequiredPasswordLength=10 minRequiredNonalphanumericCharacters=2 .../>
  </providers>
 </membership>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top