Created
January 4, 2017 18:35
-
-
Save AbubakarSiddiq/2a526fd8d47809ca3fdcf9527f111011 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model TwoFactorAuthenticationDemo.Models.LoginModel | |
@{ | |
ViewBag.Title = "Login"; | |
} | |
<h2>Login Page</h2> | |
@if (ViewBag.Status == null || !ViewBag.Status) | |
{ | |
<div>@ViewBag.Message</div> | |
<div> | |
@using (Html.BeginForm()) | |
{ | |
<div class="form-group"> | |
<label for="UserName">UserName : </label> | |
@Html.TextBoxFor(a => a.UserName, new { @class = "form-control" }) | |
</div> | |
<div class="form-group"> | |
<label for="Password">Password : </label> | |
@Html.TextBoxFor(a => a.Password, new { @class = "form-control", type = "password" }) | |
</div> | |
<input type="submit" value="Login" class="btn btn-default" /> | |
} | |
</div> | |
} | |
else | |
{ | |
<div>@ViewBag.Message</div> | |
<div> | |
<img src="@ViewBag.BarcodeImageUrl" /> | |
</div> | |
<div> | |
Manual Setup Code : @ViewBag.SetupCode | |
</div> | |
<div> | |
@using (Html.BeginForm("TwoFactorAuthenticate", "Home", FormMethod.Post)) | |
{ | |
<input type="text" name="CodeDigit" /> | |
<input type="submit" class="btn btn-success" /> | |
} | |
</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment