18 references to HasPasswordAsync
Identity.ExternalClaims (2)
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
66
var hasPassword = await _userManager.
HasPasswordAsync
(user);
Pages\Account\Manage\SetPassword.cshtml.cs (1)
57
var hasPassword = await _userManager.
HasPasswordAsync
(user);
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
53
HasPassword = await _userManager.
HasPasswordAsync
(user),
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
560
Assert.False(await manager.
HasPasswordAsync
(user));
602
Assert.False(await manager.
HasPasswordAsync
(user));
604
Assert.True(await manager.
HasPasswordAsync
(user));
622
Assert.True(await manager.
HasPasswordAsync
(user));
675
Assert.False(await manager.
HasPasswordAsync
(user));
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
729
await Assert.ThrowsAsync<NotSupportedException>(() => manager.
HasPasswordAsync
(null));
1091
async () => await manager.
HasPasswordAsync
(null));
Microsoft.AspNetCore.Identity.UI (8)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
104
var hasPassword = await _userManager.
HasPasswordAsync
(user);
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (2)
83
RequirePassword = await _userManager.
HasPasswordAsync
(user);
95
RequirePassword = await _userManager.
HasPasswordAsync
(user);
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
91
var hasPassword = await _userManager.
HasPasswordAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
104
var hasPassword = await _userManager.
HasPasswordAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (2)
83
RequirePassword = await _userManager.
HasPasswordAsync
(user);
95
RequirePassword = await _userManager.
HasPasswordAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
91
var hasPassword = await _userManager.
HasPasswordAsync
(user);