main
Last change
on this file was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | @page
|
---|
2 | @model LoginWith2faModel
|
---|
3 | @{
|
---|
4 | ViewData["Title"] = "Two-factor authentication";
|
---|
5 | }
|
---|
6 |
|
---|
7 | <h1>@ViewData["Title"]</h1>
|
---|
8 | <hr />
|
---|
9 | <p>Your login is protected with an authenticator app. Enter your authenticator code below.</p>
|
---|
10 | <div class="row">
|
---|
11 | <div class="col-md-4">
|
---|
12 | <form method="post" asp-route-returnUrl="@Model.ReturnUrl">
|
---|
13 | <input asp-for="RememberMe" type="hidden" />
|
---|
14 | <div asp-validation-summary="ModelOnly" class="text-danger" role="alert"></div>
|
---|
15 | <div class="form-floating mb-3">
|
---|
16 | <input asp-for="Input.TwoFactorCode" class="form-control" autocomplete="off" />
|
---|
17 | <label asp-for="Input.TwoFactorCode" class="form-label"></label>
|
---|
18 | <span asp-validation-for="Input.TwoFactorCode" class="text-danger"></span>
|
---|
19 | </div>
|
---|
20 | <div class="checkbox mb-3">
|
---|
21 | <label asp-for="Input.RememberMachine" class="form-label">
|
---|
22 | <input asp-for="Input.RememberMachine" />
|
---|
23 | @Html.DisplayNameFor(m => m.Input.RememberMachine)
|
---|
24 | </label>
|
---|
25 | </div>
|
---|
26 | <div>
|
---|
27 | <button type="submit" class="w-100 btn btn-lg btn-primary">Log in</button>
|
---|
28 | </div>
|
---|
29 | </form>
|
---|
30 | </div>
|
---|
31 | </div>
|
---|
32 | <p>
|
---|
33 | Don't have access to your authenticator device? You can
|
---|
34 | <a id="recovery-code-login" asp-page="./LoginWithRecoveryCode" asp-route-returnUrl="@Model.ReturnUrl">log in with a recovery code</a>.
|
---|
35 | </p>
|
---|
36 |
|
---|
37 | @section Scripts {
|
---|
38 | <partial name="_ValidationScriptsPartial" />
|
---|
39 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.