Example #1
0
        public async Task <IActionResult> ChangePassword(ChangeUserPasswordDto payload)
        {
            var result = await _authenticateService.ChangePassword(payload);

            return(Ok(result));
        }
Example #2
0
        public async Task <IActionResult> ChangePassword(ChangePasswordDto model)
        {
            await _authenticateService.ChangePassword(model.CurrentPassword, model.NewPassword);

            return(Ok());
        }