Search Results for

    Show / Hide Table of Contents
    View Source

    Class BackOfficeErrorDescriber

    Umbraco back office specific Microsoft.AspNetCore.Identity.IdentityErrorDescriber

    Inheritance
    object
    IdentityErrorDescriber
    UmbracoErrorDescriberBase
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class BackOfficeErrorDescriber : UmbracoErrorDescriberBase

    Constructors

    View Source

    BackOfficeErrorDescriber(ILocalizedTextService)

    Initializes a new instance of the BackOfficeErrorDescriber class with the specified localized text service.

    Declaration
    public BackOfficeErrorDescriber(ILocalizedTextService textService)
    Parameters
    Type Name Description
    ILocalizedTextService textService

    An instance of ILocalizedTextService used for localization.

    Methods

    View Source

    DuplicateRoleName(string)

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that a role name is already in use.

    Declaration
    public override IdentityError DuplicateRoleName(string role)
    Parameters
    Type Name Description
    string role

    The name of the role that is duplicated.

    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError describing the duplicate role name error.

    View Source

    InvalidRoleName(string?)

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that the specified role name is invalid. This error typically occurs when the provided role name does not meet the required validation rules.

    Declaration
    public override IdentityError InvalidRoleName(string? role)
    Parameters
    Type Name Description
    string role

    The role name that failed validation.

    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError describing the invalid role name error.

    View Source

    LoginAlreadyAssociated()

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that the login is already associated with another user.

    Declaration
    public override IdentityError LoginAlreadyAssociated()
    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError describing the duplicate login error.

    View Source

    UserAlreadyHasPassword()

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that the user already has a password set.

    Declaration
    public override IdentityError UserAlreadyHasPassword()
    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError describing the error that the user already has a password.

    View Source

    UserAlreadyInRole(string)

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating the user is already in the specified role.

    Declaration
    public override IdentityError UserAlreadyInRole(string role)
    Parameters
    Type Name Description
    string role

    The name of the role to check.

    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError describing the error.

    View Source

    UserLockoutNotEnabled()

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that lockout is not enabled for the user.

    Declaration
    public override IdentityError UserLockoutNotEnabled()
    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError describing the error that user lockout is not enabled.

    View Source

    UserNotInRole(string)

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that the user is not in the specified role.

    Declaration
    public override IdentityError UserNotInRole(string role)
    Parameters
    Type Name Description
    string role

    The role that the user is not a member of.

    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError describing the error.

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