mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Feature: Plugin can extend whether an account can login or not
This commit is contained in:
@@ -29,6 +29,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Cors;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Localization;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
@@ -70,6 +71,7 @@ namespace BTCPayServer.Controllers
|
||||
private readonly LocalizerService _localizer;
|
||||
private readonly EmailSenderFactory _emailSenderFactory;
|
||||
public IStringLocalizer StringLocalizer { get; }
|
||||
public ViewLocalizer ViewLocalizer { get; }
|
||||
|
||||
public UIServerController(
|
||||
UserManager<ApplicationUser> userManager,
|
||||
@@ -98,6 +100,7 @@ namespace BTCPayServer.Controllers
|
||||
TransactionLinkProviders transactionLinkProviders,
|
||||
LocalizerService localizer,
|
||||
IStringLocalizer stringLocalizer,
|
||||
ViewLocalizer viewLocalizer,
|
||||
BTCPayServerEnvironment environment
|
||||
)
|
||||
{
|
||||
@@ -128,6 +131,7 @@ namespace BTCPayServer.Controllers
|
||||
_localizer = localizer;
|
||||
Environment = environment;
|
||||
StringLocalizer = stringLocalizer;
|
||||
ViewLocalizer = viewLocalizer;
|
||||
}
|
||||
|
||||
[HttpGet("server/stores")]
|
||||
|
||||
Reference in New Issue
Block a user