public async Task <ActionResult <EntitiesResponse <IdentityServerUser> > > ResetPassword([FromBody] ResetPasswordArguments args)
        {
            var serverTime = DateTimeOffset.UtcNow;
            var result     = await _service.ResetPassword(args);

            var response = TransformToEntitiesResponse(result, serverTime, cancellation: default);

            return(Ok(response));
        }
Exemple #2
0
 public async Task <ActionResult <EntitiesResponse <IdentityServerUser> > > ResetPassword(ResetPasswordArguments args)
 {
     return(await ControllerUtilities.InvokeActionImpl(async() =>
     {
         var serverTime = DateTimeOffset.UtcNow;
         var(data, extras) = await _service.ResetPassword(args);
         var response = TransformToEntitiesResponse(data, extras, serverTime, cancellation: default);
         return Ok(response);
     }
                                                       , _logger));
 }