26 instantiations of IdentityError
Microsoft.AspNetCore.Identity.Specification.Tests (2)
IdentitySpecificationTestBase.cs (1)
141
public static readonly IdentityError ErrorMessage = new
IdentityError
{ Description = "I'm Bad.", Code = "BadValidator" };
UserManagerSpecificationTests.cs (1)
143
public static readonly IdentityError ErrorMessage = new
IdentityError
{ Description = "I'm Bad.", Code = "BadValidator" };
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
1187
public static readonly IdentityError ErrorMessage = new
IdentityError
{ Description = "I'm Bad." };
1785
return new
IdentityError
{ Code = Code, Description = string.Format(CultureInfo.InvariantCulture, FormatError, email) };
Microsoft.Extensions.Identity.Core (22)
IdentityErrorDescriber.cs (22)
22
return new
IdentityError
35
return new
IdentityError
48
return new
IdentityError
61
return new
IdentityError
74
return new
IdentityError
87
return new
IdentityError
101
return new
IdentityError
115
return new
IdentityError
129
return new
IdentityError
143
return new
IdentityError
157
return new
IdentityError
171
return new
IdentityError
184
return new
IdentityError
197
return new
IdentityError
211
return new
IdentityError
225
return new
IdentityError
239
return new
IdentityError
253
return new
IdentityError
266
return new
IdentityError
279
return new
IdentityError
292
return new
IdentityError
305
return new
IdentityError
128 references to IdentityError
Identity.ExternalClaims (5)
Pages\Account\ExternalLogin.cshtml.cs (1)
138
foreach (
var
error in result.Errors)
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
91
foreach (
var
error in changePasswordResult.Errors)
Pages\Account\Manage\SetPassword.cshtml.cs (1)
83
foreach (
var
error in addPasswordResult.Errors)
Pages\Account\Register.cshtml.cs (1)
84
foreach (
var
error in result.Errors)
Pages\Account\ResetPassword.cshtml.cs (1)
83
foreach (
var
error in result.Errors)
IdentitySample.DefaultUI (1)
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
114
foreach (
var
error in result.Errors)
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
539
foreach (
var
error in result.Errors)
Controllers\ManageController.cs (1)
353
foreach (
var
error in result.Errors)
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
436
foreach (
var
error in result.Errors)
SignInManager.cs (1)
995
foreach (
var
error in IdentityResult.Errors)
Microsoft.AspNetCore.Identity.Specification.Tests (5)
IdentityResultAssert.cs (1)
47
public static void IsFailure(IdentityResult result,
IdentityError
error = null)
IdentitySpecificationTestBase.cs (2)
141
public static readonly
IdentityError
ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" };
203
var
error = AlwaysBadValidator.ErrorMessage;
UserManagerSpecificationTests.cs (2)
143
public static readonly
IdentityError
ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" };
251
var
error = _errorDescriber.InvalidUserName("");
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
1187
public static readonly
IdentityError
ErrorMessage = new IdentityError { Description = "I'm Bad." };
1783
public override
IdentityError
DuplicateEmail(string email)
Microsoft.AspNetCore.Identity.UI (10)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
220
foreach (
var
error in result.Errors)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
129
foreach (
var
error in changePasswordResult.Errors)
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
117
foreach (
var
error in addPasswordResult.Errors)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
160
foreach (
var
error in result.Errors)
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
126
foreach (
var
error in result.Errors)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
220
foreach (
var
error in result.Errors)
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
129
foreach (
var
error in changePasswordResult.Errors)
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
117
foreach (
var
error in addPasswordResult.Errors)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
160
foreach (
var
error in result.Errors)
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
126
foreach (
var
error in result.Errors)
Microsoft.Extensions.Identity.Core (101)
IdentityErrorDescriber.cs (66)
17
/// Returns the default <see cref="
IdentityError
"/>.
19
/// <returns>The default <see cref="
IdentityError
"/>.</returns>
20
public virtual
IdentityError
DefaultError()
30
/// Returns an <see cref="
IdentityError
"/> indicating a concurrency failure.
32
/// <returns>An <see cref="
IdentityError
"/> indicating a concurrency failure.</returns>
33
public virtual
IdentityError
ConcurrencyFailure()
43
/// Returns an <see cref="
IdentityError
"/> indicating a password mismatch.
45
/// <returns>An <see cref="
IdentityError
"/> indicating a password mismatch.</returns>
46
public virtual
IdentityError
PasswordMismatch()
56
/// Returns an <see cref="
IdentityError
"/> indicating an invalid token.
58
/// <returns>An <see cref="
IdentityError
"/> indicating an invalid token.</returns>
59
public virtual
IdentityError
InvalidToken()
69
/// Returns an <see cref="
IdentityError
"/> indicating a recovery code was not redeemed.
71
/// <returns>An <see cref="
IdentityError
"/> indicating a recovery code was not redeemed.</returns>
72
public virtual
IdentityError
RecoveryCodeRedemptionFailed()
82
/// Returns an <see cref="
IdentityError
"/> indicating an external login is already associated with an account.
84
/// <returns>An <see cref="
IdentityError
"/> indicating an external login is already associated with an account.</returns>
85
public virtual
IdentityError
LoginAlreadyAssociated()
95
/// Returns an <see cref="
IdentityError
"/> indicating the specified user <paramref name="userName"/> is invalid.
98
/// <returns>An <see cref="
IdentityError
"/> indicating the specified user <paramref name="userName"/> is invalid.</returns>
99
public virtual
IdentityError
InvalidUserName(string? userName)
109
/// Returns an <see cref="
IdentityError
"/> indicating the specified <paramref name="email"/> is invalid.
112
/// <returns>An <see cref="
IdentityError
"/> indicating the specified <paramref name="email"/> is invalid.</returns>
113
public virtual
IdentityError
InvalidEmail(string? email)
123
/// Returns an <see cref="
IdentityError
"/> indicating the specified <paramref name="userName"/> already exists.
126
/// <returns>An <see cref="
IdentityError
"/> indicating the specified <paramref name="userName"/> already exists.</returns>
127
public virtual
IdentityError
DuplicateUserName(string userName)
137
/// Returns an <see cref="
IdentityError
"/> indicating the specified <paramref name="email"/> is already associated with an account.
140
/// <returns>An <see cref="
IdentityError
"/> indicating the specified <paramref name="email"/> is already associated with an account.</returns>
141
public virtual
IdentityError
DuplicateEmail(string email)
151
/// Returns an <see cref="
IdentityError
"/> indicating the specified <paramref name="role"/> name is invalid.
154
/// <returns>An <see cref="
IdentityError
"/> indicating the specific role <paramref name="role"/> name is invalid.</returns>
155
public virtual
IdentityError
InvalidRoleName(string? role)
165
/// Returns an <see cref="
IdentityError
"/> indicating the specified <paramref name="role"/> name already exists.
168
/// <returns>An <see cref="
IdentityError
"/> indicating the specific role <paramref name="role"/> name already exists.</returns>
169
public virtual
IdentityError
DuplicateRoleName(string role)
179
/// Returns an <see cref="
IdentityError
"/> indicating a user already has a password.
181
/// <returns>An <see cref="
IdentityError
"/> indicating a user already has a password.</returns>
182
public virtual
IdentityError
UserAlreadyHasPassword()
192
/// Returns an <see cref="
IdentityError
"/> indicating user lockout is not enabled.
194
/// <returns>An <see cref="
IdentityError
"/> indicating user lockout is not enabled.</returns>
195
public virtual
IdentityError
UserLockoutNotEnabled()
205
/// Returns an <see cref="
IdentityError
"/> indicating a user is already in the specified <paramref name="role"/>.
208
/// <returns>An <see cref="
IdentityError
"/> indicating a user is already in the specified <paramref name="role"/>.</returns>
209
public virtual
IdentityError
UserAlreadyInRole(string role)
219
/// Returns an <see cref="
IdentityError
"/> indicating a user is not in the specified <paramref name="role"/>.
222
/// <returns>An <see cref="
IdentityError
"/> indicating a user is not in the specified <paramref name="role"/>.</returns>
223
public virtual
IdentityError
UserNotInRole(string role)
233
/// Returns an <see cref="
IdentityError
"/> indicating a password of the specified <paramref name="length"/> does not meet the minimum length requirements.
236
/// <returns>An <see cref="
IdentityError
"/> indicating a password of the specified <paramref name="length"/> does not meet the minimum length requirements.</returns>
237
public virtual
IdentityError
PasswordTooShort(int length)
247
/// Returns an <see cref="
IdentityError
"/> indicating a password does not meet the minimum number <paramref name="uniqueChars"/> of unique chars.
250
/// <returns>An <see cref="
IdentityError
"/> indicating a password does not meet the minimum number <paramref name="uniqueChars"/> of unique chars.</returns>
251
public virtual
IdentityError
PasswordRequiresUniqueChars(int uniqueChars)
261
/// Returns an <see cref="
IdentityError
"/> indicating a password entered does not contain a non-alphanumeric character, which is required by the password policy.
263
/// <returns>An <see cref="
IdentityError
"/> indicating a password entered does not contain a non-alphanumeric character.</returns>
264
public virtual
IdentityError
PasswordRequiresNonAlphanumeric()
274
/// Returns an <see cref="
IdentityError
"/> indicating a password entered does not contain a numeric character, which is required by the password policy.
276
/// <returns>An <see cref="
IdentityError
"/> indicating a password entered does not contain a numeric character.</returns>
277
public virtual
IdentityError
PasswordRequiresDigit()
287
/// Returns an <see cref="
IdentityError
"/> indicating a password entered does not contain a lower case letter, which is required by the password policy.
289
/// <returns>An <see cref="
IdentityError
"/> indicating a password entered does not contain a lower case letter.</returns>
290
public virtual
IdentityError
PasswordRequiresLower()
300
/// Returns an <see cref="
IdentityError
"/> indicating a password entered does not contain an upper case letter, which is required by the password policy.
302
/// <returns>An <see cref="
IdentityError
"/> indicating a password entered does not contain an upper case letter.</returns>
303
public virtual
IdentityError
PasswordRequiresUpper()
IdentityResult.cs (8)
16
private readonly List<
IdentityError
> _errors = new List<
IdentityError
>();
25
/// An <see cref="IEnumerable{T}"/> of <see cref="
IdentityError
"/> instances containing errors
28
/// <value>An <see cref="IEnumerable{T}"/> of <see cref="
IdentityError
"/> instances.</value>
29
public IEnumerable<
IdentityError
> Errors => _errors;
40
/// <param name="errors">An optional array of <see cref="
IdentityError
"/>s which caused the operation to fail.</param>
42
public static IdentityResult Failed(params
IdentityError
[] errors)
52
internal static IdentityResult Failed(List<
IdentityError
>? errors)
PasswordValidator.cs (7)
43
List<
IdentityError
>? errors = null;
48
errors ??= new List<
IdentityError
>();
53
errors ??= new List<
IdentityError
>();
58
errors ??= new List<
IdentityError
>();
63
errors ??= new List<
IdentityError
>();
68
errors ??= new List<
IdentityError
>();
73
errors ??= new List<
IdentityError
>();
RoleManager.cs (2)
399
List<
IdentityError
>? errors = null;
405
errors ??= new List<
IdentityError
>();
RoleValidator.cs (4)
46
private async Task<List<
IdentityError
>?> ValidateRoleName(RoleManager<TRole> manager, TRole role)
48
List<
IdentityError
>? errors = null;
52
errors ??= new List<
IdentityError
>();
61
errors ??= new List<
IdentityError
>();
UserManager.cs (4)
2309
List<
IdentityError
>? errors = null;
2315
errors ??= new List<
IdentityError
>();
2339
List<
IdentityError
>? errors = null;
2348
errors ??= new List<
IdentityError
>();
UserValidator.cs (10)
52
private async Task<List<
IdentityError
>?> ValidateUserName(UserManager<TUser> manager, TUser user)
54
List<
IdentityError
>? errors = null;
58
errors ??= new List<
IdentityError
>();
64
errors ??= new List<
IdentityError
>();
73
errors ??= new List<
IdentityError
>();
82
private async Task<List<
IdentityError
>?> ValidateEmail(UserManager<TUser> manager, TUser user, List<
IdentityError
>? errors)
87
errors ??= new List<
IdentityError
>();
93
errors ??= new List<
IdentityError
>();
101
errors ??= new List<
IdentityError
>();