Unosquare
    Show / Hide Table of Contents

    Interface IPasswordChangeProvider

    Represents a interface for a password change provider.

    Namespace: Unosquare.PassCore.Common
    Syntax
    public interface IPasswordChangeProvider

    Methods

    MeasureNewPasswordDistance(String, String)

    Compute the distance between two strings. Take it from https://www.csharpstar.com/csharp-string-distance-algorithm/.

    Declaration
    virtual int MeasureNewPasswordDistance(string currentPassword, string newPassword)
    Parameters
    Type Name Description
    System.String currentPassword

    The current password.

    System.String newPassword

    The new password.

    Returns
    Type Description
    System.Int32

    The distance between strings.

    PerformPasswordChange(String, String, String)

    Performs the password change using the credentials provided.

    Declaration
    ApiErrorItem PerformPasswordChange(string username, string currentPassword, string newPassword)
    Parameters
    Type Name Description
    System.String username

    The username.

    System.String currentPassword

    The current password.

    System.String newPassword

    The new password.

    Returns
    Type Description
    ApiErrorItem

    The API error item or null if the change password operation was successful.

    Comments

    Back to top Copyright © 2017-2019 Unosquare