@model ForgotPasswordViewModel
@{
    ViewData["Title"] = SR["Forgot your password?"];
}

<h2>@ViewData["Title"]</h2>

<form asp-controller="Account" asp-action="ForgotPassword" method="post" class="form-horizontal" role="form">
    <h4>@SR["Enter your user name or e-mail."]</h4>
    <hr />
    <div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
    <div class="form-group">
        <label  class="col-md-2 control-label">@SR["LoginOrEmail"]</label>
        <div class="col-md-10">
            @if (User.Identity.IsAuthenticated) {
               <input type="hidden" name="LoginOrEmail" value="@ViewBag.UserEmail" />
               @ViewBag.UserEmail

            } else {
                <input asp-for="LoginOrEmail" class="form-control" />
            }
            <span asp-validation-for="LoginOrEmail" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <button type="submit" class="btn btn-default">@SR["Submit"]</button>
        </div>
    </div>
</form>

@section Scripts {
    @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
