34 references to CheckPasswordAsync
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
384
if (await UserManager.
CheckPasswordAsync
(user, password))
Microsoft.AspNetCore.Identity.Specification.Tests (12)
UserManagerSpecificationTests.cs (12)
326
Assert.True(await manager.
CheckPasswordAsync
(user, "password"));
331
Assert.False(await manager.
CheckPasswordAsync
(user, "password"));
333
Assert.True(await manager.
CheckPasswordAsync
(user, "New"));
512
Assert.True(await manager.
CheckPasswordAsync
(user, password));
561
Assert.False(await manager.
CheckPasswordAsync
(user, "whatever"));
609
Assert.True(await manager.
CheckPasswordAsync
(user, "password"));
694
Assert.False(await manager.
CheckPasswordAsync
(user, password));
695
Assert.True(await manager.
CheckPasswordAsync
(user, newPassword));
1002
Assert.False(await manager.
CheckPasswordAsync
(user, password));
1003
Assert.True(await manager.
CheckPasswordAsync
(user, newPassword));
1029
Assert.True(await manager.
CheckPasswordAsync
(user, password));
1051
Assert.True(await manager.
CheckPasswordAsync
(user, password));
Microsoft.AspNetCore.Identity.Test (19)
SignInManagerTest.cs (16)
125
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
148
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
172
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
201
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
244
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
278
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
786
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
839
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-bogus1")).ReturnsAsync(false).Verifiable();
888
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-bogus1")).ReturnsAsync(false).Verifiable();
915
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-bogus1")).ReturnsAsync(false).Verifiable();
939
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
945
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
999
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
1143
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
1166
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-1a")).ReturnsAsync(true).Verifiable();
1231
manager.Setup(m => m.
CheckPasswordAsync
(user, "[PLACEHOLDER]-bogus1")).ReturnsAsync(false).Verifiable();
UserManagerTest.cs (3)
587
var result = await userManager.
CheckPasswordAsync
(user, pwd);
675
Assert.False(await manager.
CheckPasswordAsync
(null, "whatevs"));
728
await Assert.ThrowsAsync<NotSupportedException>(() => manager.
CheckPasswordAsync
(null, null));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (1)
98
if (!await _userManager.
CheckPasswordAsync
(user, Input.Password))
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (1)
98
if (!await _userManager.
CheckPasswordAsync
(user, Input.Password))