using System; using System.Security.Claims; using System.Threading.Tasks; using BTCPayServer.Abstractions.Constants; using BTCPayServer.Abstractions.Extensions; using BTCPayServer.Client; using BTCPayServer.Controllers; using BTCPayServer.Data; using BTCPayServer.Services; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Localization; using Microsoft.Extensions.Localization; using NicolasDorier.RateLimits; namespace BTCPayServer.Plugins.Impersonation; [Area(ImpersonationPlugin.Area)] public class UIImpersonationController : Controller { [HttpGet("/account/login-codes")] [Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie, Policy = Policies.CanViewProfile)] public ActionResult LoginCodes() { return View(); } }