示例#1
0
 public virtual Task ChangePasswordAsync(ChangePasswordInput input)
 {
     return(ProfileAppService.ChangePasswordAsync(input));
 }
        public virtual async Task ChangePasswordAsync(ChangePasswordInput input)
        {
            var currentUser = await UserManager.GetByIdAsync(CurrentUser.GetId());

            (await UserManager.ChangePasswordAsync(currentUser, input.CurrentPassword, input.NewPassword)).CheckErrors();
        }