Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IBackOfficeUserPasswordChecker

    Used by the BackOfficeUserManager to check the username/password which allows for developers to more easily set the logic for this procedure.

    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface IBackOfficeUserPasswordChecker

    Methods

    View Source

    CheckPasswordAsync(BackOfficeIdentityUser, string)

    Checks whether the specified password is valid for the given back office user.

    Declaration
    Task<BackOfficeUserPasswordCheckerResult> CheckPasswordAsync(BackOfficeIdentityUser user, string password)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user

    The back office identity user whose password is being validated. The username will always be set; other properties may be null if the user does not exist locally.

    string password

    The password to validate against the user's credentials.

    Returns
    Type Description
    Task<BackOfficeUserPasswordCheckerResult>

    A task representing the asynchronous operation. The result contains the outcome of the password check.

    Remarks

    This method allows a developer to auto-link a local account, which is required if the queried user does not exist locally. The user parameter will always contain the username; if the user does not exist locally, the other properties will not be populated. A developer can then create a local account by filling in the properties and using UserManager.CreateAsync.

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