Allow resending verification email for users (#3726)

* Allow resending verification email for users

Partially address #3645

* Replace RequiresEmailConfirmation with Verified

* Use confirmation modal

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
This commit is contained in:
Umar Bolatov
2022-05-26 21:36:47 -07:00
committed by GitHub
parent 5dba4a2201
commit a9e08dd587
3 changed files with 44 additions and 6 deletions

View File

@@ -7,7 +7,6 @@ using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Mail;
using System.Threading.Tasks;
using BTCPayServer.Abstractions.Constants;
using BTCPayServer.Abstractions.Extensions;
@@ -62,6 +61,8 @@ namespace BTCPayServer.Controllers
private readonly StoredFileRepository _StoredFileRepository;
private readonly FileService _FileService;
private readonly IEnumerable<IStorageProviderService> _StorageProviderServices;
private readonly LinkGenerator _linkGenerator;
private readonly EmailSenderFactory _emailSenderFactory;
public UIServerController(
UserManager<ApplicationUser> userManager,
@@ -81,7 +82,10 @@ namespace BTCPayServer.Controllers
CheckConfigurationHostedService sshState,
EventAggregator eventAggregator,
IOptions<ExternalServicesOptions> externalServiceOptions,
Logs logs)
Logs logs,
LinkGenerator linkGenerator,
EmailSenderFactory emailSenderFactory
)
{
_policiesSettings = policiesSettings;
_Options = options;
@@ -101,6 +105,8 @@ namespace BTCPayServer.Controllers
_eventAggregator = eventAggregator;
_externalServiceOptions = externalServiceOptions;
Logs = logs;
_linkGenerator = linkGenerator;
_emailSenderFactory = emailSenderFactory;
}
[Route("server/maintenance")]