Search Results for

    Show / Hide Table of Contents
    View Source

    Class MembersErrorDescriber

    Provides descriptive error messages for operations related to Umbraco members.

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

    Constructors

    View Source

    MembersErrorDescriber(ILocalizedTextService)

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

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

    An instance of ILocalizedTextService used to provide localized error messages.

    Methods

    View Source

    DuplicateRoleName(string)

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that a role name already exists.

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

    The role name that is already in use.

    Returns
    Type Description
    IdentityError

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

    View Source

    InvalidRoleName(string?)

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that the specified role name is invalid.

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

    The invalid role name.

    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 member.

    Declaration
    public override IdentityError LoginAlreadyAssociated()
    Returns
    Type Description
    IdentityError

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

    View Source

    PasswordMismatch()

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that the provided password does not match.

    Declaration
    public override IdentityError PasswordMismatch()
    Returns
    Type Description
    IdentityError

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

    View Source

    UserAlreadyHasPassword()

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

    Declaration
    public override IdentityError UserAlreadyHasPassword()
    Returns
    Type Description
    IdentityError

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

    View Source

    UserAlreadyInRole(string)

    Returns an Microsoft.AspNetCore.Identity.IdentityError indicating that the user is already a member of the specified role.

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

    The name of the role the user is already in.

    Returns
    Type Description
    IdentityError

    An Microsoft.AspNetCore.Identity.IdentityError that describes the error.

    View Source

    UserLockoutNotEnabled()

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

    Declaration
    public override IdentityError UserLockoutNotEnabled()
    Returns
    Type Description
    IdentityError

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

    View Source

    UserNotInRole(string)

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

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

    The role to check membership for.

    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