Search Results for

    Show / Hide Table of Contents
    View Source

    Class BackOfficeUserValidator<T>

    Provides validation logic for back office users of type T.

    Inheritance
    object
    UserValidator<T>
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class BackOfficeUserValidator<T> : UserValidator<T> where T : BackOfficeIdentityUser
    Type Parameters
    Name Description
    T

    Constructors

    View Source

    BackOfficeUserValidator()

    Declaration
    public BackOfficeUserValidator()

    Methods

    View Source

    ValidateAsync(UserManager<T>, T)

    Asynchronously validates the specified user, only performing validation if the user's email or username has changed.

    Declaration
    public override Task<IdentityResult> ValidateAsync(UserManager<T> manager, T user)
    Parameters
    Type Name Description
    UserManager<T> manager

    The user manager instance used for validation.

    T user

    The user to validate.

    Returns
    Type Description
    Task<IdentityResult>

    A task representing the asynchronous validation operation. The task result contains the Microsoft.AspNetCore.Identity.IdentityResult of the validation.

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