35 references to Failed
Microsoft.AspNetCore.Identity (5)
IdentityApiEndpointRouteBuilderExtensions.cs (4)
73return CreateValidationProblem(IdentityResult.Failed(userManager.ErrorDescriber.InvalidEmail(email))); 236return CreateValidationProblem(IdentityResult.Failed(userManager.ErrorDescriber.InvalidToken())); 247result = IdentityResult.Failed(userManager.ErrorDescriber.InvalidToken()); 359return CreateValidationProblem(IdentityResult.Failed(userManager.ErrorDescriber.InvalidEmail(infoRequest.NewEmail)));
SignInManager.cs (1)
734return IdentityResult.Failed();
Microsoft.AspNetCore.Identity.EntityFrameworkCore (6)
RoleStore.cs (2)
160return IdentityResult.Failed(ErrorDescriber.ConcurrencyFailure()); 183return IdentityResult.Failed(ErrorDescriber.ConcurrencyFailure());
UserOnlyStore.cs (2)
180return IdentityResult.Failed(ErrorDescriber.ConcurrencyFailure()); 204return IdentityResult.Failed(ErrorDescriber.ConcurrencyFailure());
UserStore.cs (2)
182return IdentityResult.Failed(ErrorDescriber.ConcurrencyFailure()); 206return IdentityResult.Failed(ErrorDescriber.ConcurrencyFailure());
Microsoft.AspNetCore.Identity.Specification.Tests (7)
IdentitySpecificationTestBase.cs (3)
145return Task.FromResult(IdentityResult.Failed(ErrorMessage)); 150return Task.FromResult(IdentityResult.Failed(ErrorMessage)); 155return Task.FromResult(IdentityResult.Failed(ErrorMessage));
UserManagerSpecificationTests.cs (4)
147return Task.FromResult(IdentityResult.Failed(ErrorMessage)); 152return Task.FromResult(IdentityResult.Failed(ErrorMessage)); 161return Task.FromResult(IdentityResult.Failed()); 166return Task.FromResult(IdentityResult.Failed());
Microsoft.AspNetCore.Identity.Test (6)
IdentityResultTest.cs (1)
19var result = IdentityResult.Failed();
SignInManagerTest.cs (3)
1144manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Failed()).Verifiable(); 1195manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Failed()).Verifiable(); 1217new object[] { IdentityResult.Failed(), SignInResult.Failed },
UserManagerTest.cs (2)
1195badResult = IdentityResult.Failed(ErrorMessage); 1199badResult = IdentityResult.Failed();
Microsoft.Extensions.Identity.Core (11)
UserManager.cs (11)
736return IdentityResult.Failed(ErrorDescriber.UserAlreadyHasPassword()); 773return IdentityResult.Failed(ErrorDescriber.PasswordMismatch()); 886return IdentityResult.Failed(ErrorDescriber.InvalidToken()); 957return IdentityResult.Failed(ErrorDescriber.LoginAlreadyAssociated()); 1173return IdentityResult.Failed(ErrorDescriber.UserAlreadyInRole(role)); 1182return IdentityResult.Failed(ErrorDescriber.UserNotInRole(role)); 1361return IdentityResult.Failed(ErrorDescriber.InvalidToken()); 1416return IdentityResult.Failed(ErrorDescriber.InvalidToken()); 1479return IdentityResult.Failed(ErrorDescriber.InvalidToken()); 1802return IdentityResult.Failed(ErrorDescriber.UserLockoutNotEnabled()); 2114return IdentityResult.Failed(ErrorDescriber.RecoveryCodeRedemptionFailed());