Class MembersErrorDescriber
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MembersErrorDescriber : UmbracoErrorDescriberBase
Constructors
View SourceMembersErrorDescriber(ILocalizedTextService)
Declaration
public MembersErrorDescriber(ILocalizedTextService textService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizedTextService | textService |
Methods
View SourceDuplicateRoleName(string)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating the specified role name already exists.
Declaration
public override IdentityError DuplicateRoleName(string role)
Parameters
| Type | Name | Description |
|---|---|---|
| string | role | The duplicate role. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating the specific role |
InvalidRoleName(string?)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating the specified role name is invalid.
Declaration
public override IdentityError InvalidRoleName(string? role)
Parameters
| Type | Name | Description |
|---|---|---|
| string | role | The invalid role. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating the specific role |
LoginAlreadyAssociated()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating an external login is already associated with an account.
Declaration
public override IdentityError LoginAlreadyAssociated()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating an external login is already associated with an account. |
UserAlreadyHasPassword()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a user already has a password.
Declaration
public override IdentityError UserAlreadyHasPassword()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a user already has a password. |
UserAlreadyInRole(string)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a user is already in the specified role.
Declaration
public override IdentityError UserAlreadyInRole(string role)
Parameters
| Type | Name | Description |
|---|---|---|
| string | role | The duplicate role. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a user is already in the specified |
UserLockoutNotEnabled()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating user lockout is not enabled.
Declaration
public override IdentityError UserLockoutNotEnabled()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating user lockout is not enabled. |
UserNotInRole(string)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a user is not in the specified role.
Declaration
public override IdentityError UserNotInRole(string role)
Parameters
| Type | Name | Description |
|---|---|---|
| string | role | The duplicate role. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a user is not in the specified |