12 references to AddPasswordAsync
Identity.ExternalClaims (1)
Pages\Account\Manage\SetPassword.cshtml.cs (1)
80
var addPasswordResult = await _userManager.
AddPasswordAsync
(user, Input.NewPassword);
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
280
var result = await _userManager.
AddPasswordAsync
(user, model.NewPassword);
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
182
IdentityResultAssert.IsFailure(await manager.
AddPasswordAsync
(user, "password"));
440
IdentityResultAssert.IsFailure(await manager.
AddPasswordAsync
(user, "password"),
458
var result = await manager.
AddPasswordAsync
(user, "pwd");
603
IdentityResultAssert.IsSuccess(await manager.
AddPasswordAsync
(user, "password"));
623
IdentityResultAssert.IsFailure(await manager.
AddPasswordAsync
(user, "password"),
Microsoft.AspNetCore.Identity.Test (3)
UserManagerTest.cs (3)
726
await Assert.ThrowsAsync<NotSupportedException>(() => manager.
AddPasswordAsync
(null, null));
1059
async () => await manager.
AddPasswordAsync
(null, null));
1154
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
AddPasswordAsync
(null, null));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
114
var addPasswordResult = await _userManager.
AddPasswordAsync
(user, Input.NewPassword);
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
114
var addPasswordResult = await _userManager.
AddPasswordAsync
(user, Input.NewPassword);