Add some notice in sign with seed

This commit is contained in:
nicolas.dorier 2019-05-17 14:42:28 +09:00
parent aed98f16bb
commit 55a48ff84a
No known key found for this signature in database
GPG key ID: 6618763EF09186FE
2 changed files with 20 additions and 3 deletions

View file

@ -9,7 +9,7 @@ namespace BTCPayServer.Models.WalletViewModels
{
[Required]
public string PSBT { get; set; }
[Required][Display(Name = "Seed(12/24 word mnemonic seed) Or HD private key(xprv...)")]
[Required][Display(Name = "BIP39 Seed (12/24 word mnemonic phrase) or HD private key (xprv...)")]
public string SeedOrKey { get; set; }
[Display(Name = "Optional seed passphrase")]

View file

@ -1,15 +1,32 @@
@model SignWithSeedViewModel
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData["Title"] = "Sign PSBT With an HD private key or mnemonic seed";
ViewData["Title"] = "Sign PSBT with an HD private key or mnemonic seed";
ViewData.SetActivePageAndTitle(WalletsNavPages.Send);
}
<h4>Sign PSBT with an HD private key or mnemonic seed</h4>
<div class="row">
<div class="col-md-10">
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<p>
<span>Before you proceed, please understand the following:</span>
</p>
<ol>
<li>Make sure this BTCPay Server instance <b>belongs to you</b>.</li>
<li>Use <b>Chrome's Incognito mode or the Tor Browser</b>, this make sure no malicious browser plugin is running that could steal your key.</li>
</ol>
<p>
<span>Else, you are exposing yourself to malicious site owner, or to malicious plugin installed in your browser.</span>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-10">
<div asp-validation-summary="All" class="text-danger"></div>
<form method="post" asp-action="SignWithSeed">
<input type="hidden" asp-for="PSBT" />
<div class="form-group">
<label asp-for="SeedOrKey"></label>