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 SourceBackOfficeUserValidator()
Declaration
public BackOfficeUserValidator()
Methods
View SourceValidateAsync(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. |