13 references to ChangePasswordAsync
Identity.ExternalClaims (1)
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
88var changePasswordResult = await _userManager.ChangePasswordAsync(user, Input.OldPassword, Input.NewPassword);
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
245var result = await _userManager.ChangePasswordAsync(user, model.OldPassword, model.NewPassword);
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
370var changePasswordResult = await userManager.ChangePasswordAsync(user, infoRequest.OldPassword, infoRequest.NewPassword);
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
475IdentityResultAssert.IsFailure(await manager.ChangePasswordAsync(user, "password", "new")); 528IdentityResultAssert.IsFailure(await manager.ChangePasswordAsync(user, "password", "new"), 693IdentityResultAssert.IsSuccess(await manager.ChangePasswordAsync(user, password, newPassword)); 827var result = await manager.ChangePasswordAsync(user, "bogus", "newpassword"); 1136IdentityResultAssert.IsSuccess(await manager.ChangePasswordAsync(user, "password", "newpassword"));
Microsoft.AspNetCore.Identity.Test (3)
UserManagerTest.cs (3)
725await Assert.ThrowsAsync<NotSupportedException>(() => manager.ChangePasswordAsync(null, null, null)); 1065async () => await manager.ChangePasswordAsync(null, null, null)); 1157await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.ChangePasswordAsync(null, null, null));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
126var changePasswordResult = await _userManager.ChangePasswordAsync(user, Input.OldPassword, Input.NewPassword);
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
126var changePasswordResult = await _userManager.ChangePasswordAsync(user, Input.OldPassword, Input.NewPassword);