Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    PasswordGenerator(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 Source

    GeneratePassword()

    Generates a password that meets the configured password requirements.

    Declaration
    public string GeneratePassword()
    Returns
    Type Description
    string

    A randomly generated password.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX