public async Task <IActionResult> Post(ResetPasswordTemplate template) { await _identityApplicationService.ResetPasswordAsync(new ResetPasswordAdto { Password = template.Password, ConfirmPassword = template.ConfirmPassword, Token = template.Token }); return(Accepted(_resourceBuilder.Build(new ResetPasswordResource()))); }
public Task ResetPasswordAsync(ResetPasswordAdto resetPasswordAdto) { return(_securityApplicationService.SecureAsync(() => _identityApplicationService.ResetPasswordAsync(resetPasswordAdto), DefaultAuthorisationContext.Create(AuthorisationResource.Identity, AuthorisationAction.Create))); }