public async Task <IActionResult> Post(ForgotPasswordTemplate template) { await _identityApplicationService.ForgotPasswordAsync(new ForgotPasswordAdto { EmailAddress = template.EmailAddress }); return(Accepted(_resourceBuilder.Build(new ForgotPasswordResource()))); }
public Task ForgotPasswordAsync(ForgotPasswordAdto forgotPasswordAdto) { return(_securityApplicationService.SecureAsync(() => _identityApplicationService.ForgotPasswordAsync(forgotPasswordAdto), DefaultAuthorisationContext.Create(AuthorisationResource.Identity, AuthorisationAction.Create))); }