public async Task <IActionResult> UpdatePasswordHash([FromBody] UpdatePasswordHashModel model) { try { await _employeeCredentialsService.UpdatePasswordHashAsync(model.Email, model.PasswordHash); } catch (InvalidOperationException e) { _log.Warning($"{e.Message}, request: {model.ToJson()}", e); return(BadRequest(ErrorResponse.Create(e.Message))); } return(NoContent()); }
public Task UpdatePasswordHashAsync(UpdatePasswordHashModel model) { return(_runner.RunAsync(() => _employeesApi.UpdatePasswordHashAsync(model))); }