Class UmbracoErrorDescriberBase
Inheritance
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class UmbracoErrorDescriberBase : IdentityErrorDescriber
Constructors
View SourceUmbracoErrorDescriberBase(ILocalizedTextService)
Declaration
protected UmbracoErrorDescriberBase(ILocalizedTextService textService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizedTextService | textService |
Methods
View SourceConcurrencyFailure()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a concurrency failure.
Declaration
public override IdentityError ConcurrencyFailure()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a concurrency failure. |
DefaultError()
Returns the default Microsoft.AspNetCore.Identity.IdentityError.
Declaration
public override IdentityError DefaultError()
Returns
| Type | Description |
|---|---|
| IdentityError | The default Microsoft.AspNetCore.Identity.IdentityError. |
DuplicateEmail(string)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating the specified email is already associated with an account.
Declaration
public override IdentityError DuplicateEmail(string email)
Parameters
| Type | Name | Description |
|---|---|---|
| string | The email that is already associated with an account. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating the specified |
DuplicateUserName(string)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating the specified userName already exists.
Declaration
public override IdentityError DuplicateUserName(string userName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userName | The user name that already exists. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating the specified |
InvalidEmail(string?)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating the specified email is invalid.
Declaration
public override IdentityError InvalidEmail(string? email)
Parameters
| Type | Name | Description |
|---|---|---|
| string | The email that is invalid. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating the specified |
InvalidToken()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating an invalid token.
Declaration
public override IdentityError InvalidToken()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating an invalid token. |
InvalidUserName(string?)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating the specified user userName is invalid.
Declaration
public override IdentityError InvalidUserName(string? userName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userName | The user name that is invalid. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating the specified user |
PasswordMismatch()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a password mismatch.
Declaration
public override IdentityError PasswordMismatch()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a password mismatch. |
PasswordRequiresDigit()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain a numeric character, which is required by the password policy.
Declaration
public override IdentityError PasswordRequiresDigit()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain a numeric character. |
PasswordRequiresLower()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain a lower case letter, which is required by the password policy.
Declaration
public override IdentityError PasswordRequiresLower()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain a lower case letter. |
PasswordRequiresNonAlphanumeric()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain a non-alphanumeric character, which is required by the password policy.
Declaration
public override IdentityError PasswordRequiresNonAlphanumeric()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain a non-alphanumeric character. |
PasswordRequiresUniqueChars(int)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a password does not meet the minimum number uniqueChars of unique chars.
Declaration
public override IdentityError PasswordRequiresUniqueChars(int uniqueChars)
Parameters
| Type | Name | Description |
|---|---|---|
| int | uniqueChars | The number of different chars that must be used. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a password does not meet the minimum number |
PasswordRequiresUpper()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain an upper case letter, which is required by the password policy.
Declaration
public override IdentityError PasswordRequiresUpper()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a password entered does not contain an upper case letter. |
PasswordTooShort(int)
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a password of the specified length does not meet the minimum length requirements.
Declaration
public override IdentityError PasswordTooShort(int length)
Parameters
| Type | Name | Description |
|---|---|---|
| int | length | The length that is not long enough. |
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a password of the specified |
RecoveryCodeRedemptionFailed()
Returns an Microsoft.AspNetCore.Identity.IdentityError indicating a recovery code was not redeemed.
Declaration
public override IdentityError RecoveryCodeRedemptionFailed()
Returns
| Type | Description |
|---|---|
| IdentityError | An Microsoft.AspNetCore.Identity.IdentityError indicating a recovery code was not redeemed. |