Exemplo n.º 1
0
        public async Task <IActionResult> ChangePassword(ChangePasswordModel model)
        {
            await _identityService.ChangePasswordAsync(model.Bind(m => m.UserId, UserId).UserId, model.CurrentPassword, model.NewPassword);

            return(NoContent());
        }