mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 02:22:22 +01:00
UI: Minor 2FA improvements (#3812)
Styles the "Remember me" checkbox on login and sets a proper width for the verification code field.
This commit is contained in:
parent
ae10d0c7fd
commit
51ab9746de
2 changed files with 6 additions and 9 deletions
|
@ -7,16 +7,13 @@
|
|||
<input asp-for="RememberMe" type="hidden"/>
|
||||
<div class="form-group">
|
||||
<label asp-for="TwoFactorCode" class="form-label"></label>
|
||||
<input asp-for="TwoFactorCode" class="form-control" autocomplete="off" autofocus style="width:13em"/>
|
||||
<input asp-for="TwoFactorCode" class="form-control" autocomplete="off" autofocus style="width:14ch"/>
|
||||
<span asp-validation-for="TwoFactorCode" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label asp-for="RememberMachine" class="form-label">
|
||||
<input asp-for="RememberMachine"/>
|
||||
@Html.DisplayNameFor(m => m.RememberMachine)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check mb-3">
|
||||
<input asp-for="RememberMachine" type="checkbox" class="form-check-input" />
|
||||
<label asp-for="RememberMachine" class="form-check-label"></label>
|
||||
<span asp-validation-for="RememberMachine" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">Log in</button>
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<input asp-for="SharedKey" type="hidden" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Code" class="form-label">Verification Code</label>
|
||||
<input asp-for="Code" class="form-control" autocomplete="off" />
|
||||
<input asp-for="Code" class="form-control" autocomplete="off" autofocus style="width:14ch"/>
|
||||
<span asp-validation-for="Code" class="text-danger"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary mt-2">Verify</button>
|
||||
|
|
Loading…
Add table
Reference in a new issue