mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
use environment variable for configuring BTCPayServer
This commit is contained in:
@@ -268,6 +268,7 @@ namespace BTCPayServer.Controllers
|
||||
var callbackUrl = Url.EmailConfirmationLink(user.Id, code, Request.Scheme);
|
||||
RegisteredUserId = user.Id;
|
||||
await _emailSender.SendEmailConfirmationAsync(model.Email, callbackUrl);
|
||||
_logger.LogInformation("User created a new account with password.");
|
||||
if(!policies.RequiresConfirmedEmail)
|
||||
{
|
||||
await _signInManager.SignInAsync(user, isPersistent: false);
|
||||
@@ -278,7 +279,6 @@ namespace BTCPayServer.Controllers
|
||||
TempData["StatusMessage"] = "Account created, please confirm your email";
|
||||
return View();
|
||||
}
|
||||
_logger.LogInformation("User created a new account with password.");
|
||||
}
|
||||
AddErrors(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user