26 writes to Description
Microsoft.AspNetCore.Identity.Specification.Tests (2)
IdentitySpecificationTestBase.cs (1)
141public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" };
UserManagerSpecificationTests.cs (1)
143public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" };
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
1187public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad." }; 1785return new IdentityError { Code = Code, Description = string.Format(CultureInfo.InvariantCulture, FormatError, email) };
Microsoft.Extensions.Identity.Core (22)
IdentityErrorDescriber.cs (22)
25Description = Resources.DefaultError 38Description = Resources.ConcurrencyFailure 51Description = Resources.PasswordMismatch 64Description = Resources.InvalidToken 77Description = Resources.RecoveryCodeRedemptionFailed 90Description = Resources.LoginAlreadyAssociated 104Description = Resources.FormatInvalidUserName(userName) 118Description = Resources.FormatInvalidEmail(email) 132Description = Resources.FormatDuplicateUserName(userName) 146Description = Resources.FormatDuplicateEmail(email) 160Description = Resources.FormatInvalidRoleName(role) 174Description = Resources.FormatDuplicateRoleName(role) 187Description = Resources.UserAlreadyHasPassword 200Description = Resources.UserLockoutNotEnabled 214Description = Resources.FormatUserAlreadyInRole(role) 228Description = Resources.FormatUserNotInRole(role) 242Description = Resources.FormatPasswordTooShort(length) 256Description = Resources.FormatPasswordRequiresUniqueChars(uniqueChars) 269Description = Resources.PasswordRequiresNonAlphanumeric 282Description = Resources.PasswordRequiresDigit 295Description = Resources.PasswordRequiresLower 308Description = Resources.PasswordRequiresUpper
25 references to Description
Identity.ExternalClaims (5)
Pages\Account\ExternalLogin.cshtml.cs (1)
140ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
93ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\Manage\SetPassword.cshtml.cs (1)
85ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\Register.cshtml.cs (1)
86ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\ResetPassword.cshtml.cs (1)
85ModelState.AddModelError(string.Empty, error.Description);
IdentitySample.DefaultUI (1)
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
116ModelState.AddModelError(string.Empty, error.Description);
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
541ModelState.AddModelError(string.Empty, error.Description);
Controllers\ManageController.cs (1)
355ModelState.AddModelError(string.Empty, error.Description);
Microsoft.AspNetCore.Identity (3)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
444newDescriptions[descriptions.Length] = error.Description; 448newDescriptions = [error.Description];
SignInManager.cs (1)
1000sb.Append(error.Description);
Microsoft.AspNetCore.Identity.Specification.Tests (3)
IdentityResultAssert.cs (3)
41Assert.Equal(error, result.Errors.First().Description); 53Assert.Equal(error.Description, result.Errors.FirstOrDefault()?.Description);
Microsoft.AspNetCore.Identity.Test (1)
PasswordValidatorTest.cs (1)
178Assert.Contains(result.Errors, e => e.Description == error);
Microsoft.AspNetCore.Identity.UI (10)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
222ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
131ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
119ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
162ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
128ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
222ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
131ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
119ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
162ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
128ModelState.AddModelError(string.Empty, error.Description);