mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Fix #383
This commit is contained in:
parent
b16b1c3e8b
commit
16b57f24a2
2 changed files with 3 additions and 1 deletions
|
@ -443,7 +443,7 @@ namespace BTCPayServer.Controllers
|
||||||
|
|
||||||
if (!is2faTokenValid)
|
if (!is2faTokenValid)
|
||||||
{
|
{
|
||||||
ModelState.AddModelError("model.Code", "Verification code is invalid.");
|
ModelState.AddModelError(nameof(model.Code), "Verification code is invalid.");
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
|
<input asp-for="AuthenticatorUri" type="hidden" />
|
||||||
|
<input asp-for="SharedKey" type="hidden" />
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Code" class="control-label">Verification Code</label>
|
<label asp-for="Code" class="control-label">Verification Code</label>
|
||||||
<input asp-for="Code" class="form-control" autocomplete="off" />
|
<input asp-for="Code" class="form-control" autocomplete="off" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue