26 writes to Description
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)
25
Description
= Resources.DefaultError
38
Description
= Resources.ConcurrencyFailure
51
Description
= Resources.PasswordMismatch
64
Description
= Resources.InvalidToken
77
Description
= Resources.RecoveryCodeRedemptionFailed
90
Description
= Resources.LoginAlreadyAssociated
104
Description
= Resources.FormatInvalidUserName(userName)
118
Description
= Resources.FormatInvalidEmail(email)
132
Description
= Resources.FormatDuplicateUserName(userName)
146
Description
= Resources.FormatDuplicateEmail(email)
160
Description
= Resources.FormatInvalidRoleName(role)
174
Description
= Resources.FormatDuplicateRoleName(role)
187
Description
= Resources.UserAlreadyHasPassword
200
Description
= Resources.UserLockoutNotEnabled
214
Description
= Resources.FormatUserAlreadyInRole(role)
228
Description
= Resources.FormatUserNotInRole(role)
242
Description
= Resources.FormatPasswordTooShort(length)
256
Description
= Resources.FormatPasswordRequiresUniqueChars(uniqueChars)
269
Description
= Resources.PasswordRequiresNonAlphanumeric
282
Description
= Resources.PasswordRequiresDigit
295
Description
= Resources.PasswordRequiresLower
308
Description
= Resources.PasswordRequiresUpper
25 references to Description
Identity.ExternalClaims (5)
Pages\Account\ExternalLogin.cshtml.cs (1)
140
ModelState.AddModelError(string.Empty, error.
Description
);
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
93
ModelState.AddModelError(string.Empty, error.
Description
);
Pages\Account\Manage\SetPassword.cshtml.cs (1)
85
ModelState.AddModelError(string.Empty, error.
Description
);
Pages\Account\Register.cshtml.cs (1)
86
ModelState.AddModelError(string.Empty, error.
Description
);
Pages\Account\ResetPassword.cshtml.cs (1)
85
ModelState.AddModelError(string.Empty, error.
Description
);
IdentitySample.DefaultUI (1)
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
116
ModelState.AddModelError(string.Empty, error.
Description
);
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
541
ModelState.AddModelError(string.Empty, error.
Description
);
Controllers\ManageController.cs (1)
355
ModelState.AddModelError(string.Empty, error.
Description
);
Microsoft.AspNetCore.Identity (3)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
444
newDescriptions[descriptions.Length] = error.
Description
;
448
newDescriptions = [error.
Description
];
SignInManager.cs (1)
1000
sb.Append(error.
Description
);
Microsoft.AspNetCore.Identity.Specification.Tests (3)
IdentityResultAssert.cs (3)
41
Assert.Equal(error, result.Errors.First().
Description
);
53
Assert.Equal(error.
Description
, result.Errors.FirstOrDefault()?.
Description
);
Microsoft.AspNetCore.Identity.Test (1)
PasswordValidatorTest.cs (1)
178
Assert.Contains(result.Errors, e => e.
Description
== error);
Microsoft.AspNetCore.Identity.UI (10)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
222
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
131
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
119
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
162
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
128
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
222
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
131
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
119
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
162
ModelState.AddModelError(string.Empty, error.
Description
);
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
128
ModelState.AddModelError(string.Empty, error.
Description
);