Class PasswordGenerator
Generates a password
Inheritance
object
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Core.dll
Syntax
public class PasswordGenerator
Remarks
This uses logic copied from the old MembershipProvider.GeneratePassword logic
Constructors
View SourcePasswordGenerator(IPasswordConfiguration)
Initializes a new instance of the PasswordGenerator class.
Declaration
public PasswordGenerator(IPasswordConfiguration passwordConfiguration)
Parameters
| Type | Name | Description |
|---|---|---|
| IPasswordConfiguration | passwordConfiguration | The password configuration settings. |
Methods
View SourceGeneratePassword()
Generates a password that meets the configured password requirements.
Declaration
public string GeneratePassword()
Returns
| Type | Description |
|---|---|
| string | A randomly generated password. |