@model VentaUniformes.Application.Sesion.Commands.CreateSesion.InCreateSesionModel;

@{
    ViewData["Title"] = "Iniciar Sesión";
}

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

<div class="row">
    <div class="col-md-6">
        <form asp-action="Login" method="post">
            <div class="form-group">
                <label asp-for="UserName"></label>
                <input asp-for="UserName" class="form-control" />
                <span asp-validation-for="UserName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Password"></label>
                <input asp-for="Password" class="form-control" type="password" />
                <span asp-validation-for="Password" class="text-danger"></span>
            </div>
            </br>
            <div class="form-group">
                <button type="submit" class="btn btn-primary">Iniciar Sesión</button>
            </div>


        </form>
        @if (ViewData["Mensaje"] != null)
        {
            <div class="alert alert-danger">
                @ViewData["Mensaje"]
            </div>
        }
        <h2>@ViewData["JwtToken"]</h2>
        <h2>@ViewData["URLbase"]</h2>
        <div id="secure-data"></div>
    </div>
</div>

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

    <script>
     
    </script>
}