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

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