mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Add invite and confirmation emails
This commit is contained in:
@@ -405,9 +405,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
|
||||
var callbackUrl = await _callbackGenerator.ForEmailConfirmation(user, Request);
|
||||
|
||||
(await _emailSenderFactory.GetEmailSender()).SendEmailConfirmation(user.GetMailboxAddress(), callbackUrl);
|
||||
|
||||
_eventAggregator.Publish(new UserEvent.ConfirmationEmailRequested(user, callbackUrl));
|
||||
TempData[WellKnownTempData.SuccessMessage] = StringLocalizer["Verification email sent"].Value;
|
||||
return RedirectToAction(nameof(ListUsers));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user