Class ComplexPasswordProvider
Generates a password that only contains letters (a-z), digits (1-9) and common punctations characters (!@%&*()-+=;:.?).
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public class ComplexPasswordProvider : PasswordProvider, IPasswordProvider
Constructors
ComplexPasswordProvider(IOptions<IdentityOptions>)
Creates a new instance of ComplexPasswordProvider.
Declaration
public ComplexPasswordProvider(IOptions<IdentityOptions> identityOptions)
Parameters
Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions>
identityOptions
Options for identity containing password requirements. |
Methods
GeneratePassword(Int32)
Generates a password with the specified length.
Declaration
protected override string GeneratePassword(int length)
Parameters
System.Int32
length
The length of the password. |
Returns
String
The generated password. |