예제 #1
0
        public async Task <IActionResult> ApiChangePassword(string newPassword)
        {
            var userId = User.Claims.FirstOrDefault(x => x.Type == "OryxUser")?.Value;
            var apiMsg = await ApiMessage.Wrap(async() =>
            {
                userAccountBusiness.ChangePassword(userId, newPassword);
            });

            return(Json(apiMsg));
        }