@using SharpConnector.Models;
@model SharpConnector.Models.Login
@{
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}

@if (!string.IsNullOrEmpty(ViewBag.MFPAuthID))
{
    <h3 class="text-center">User: @ViewBag.MFPAuthID </h3>
    <p>First time login! Enter your FaxCore credential to continue. </p>
    <br />
}
@using (Html.BeginForm("Index", "Login", FormMethod.Post, new { @id = "login_form", role = "form" }))
{
    <label class="full-label">Username</label>
    @Html.TextBoxFor(m => m.Username)
    <br><br>

    <label class="full-label">Password</label>
    @Html.PasswordFor(m => m.Password)

    <br><br>
    <input type="hidden" name="MFPAuthID" id="MFPAuthID" value="@ViewBag.MFPAuthID" />
    @Html.HiddenFor(m => m.AuthType, new { @Value = AuthType.Default });
    <input type="submit" value="Login" class="right">
}
