Class MembersErrorDescriber
Provides descriptive error messages for operations related to Umbraco members.
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MembersErrorDescriber : UmbracoErrorDescriberBase
Constructors
View SourceMembersErrorDescriber(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 SourceDuplicateRoleName(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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |