Add separate recovery seed backup view

fix
This commit is contained in:
Dennis Reimann
2020-07-15 19:51:01 +02:00
parent f6549cda33
commit cfef1f3432
8 changed files with 226 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.HostedServices;
using BTCPayServer.Models;
using BTCPayServer.Models.StoreViewModels;
using BTCPayServer.Security;
using BTCPayServer.Services.Apps;
using Microsoft.AspNetCore.Authorization;
@@ -191,6 +192,13 @@ namespace BTCPayServer.Controllers
return View(vm);
}
[Route("recovery-seed-backup")]
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie)]
public IActionResult RecoverySeedBackup(RecoverySeedBackupViewModel vm)
{
return View("RecoverySeedBackup", vm);
}
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });