mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
114 lines
4.6 KiB
Plaintext
114 lines
4.6 KiB
Plaintext
@{
|
|
/******************************************************************************
|
|
// Canary Islands Computer Museum Website
|
|
// ----------------------------------------------------------------------------
|
|
//
|
|
// Filename : Login.cshtml
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
//
|
|
// --[ Description ] ----------------------------------------------------------
|
|
//
|
|
// ASP.NET Identify management
|
|
//
|
|
// --[ License ] --------------------------------------------------------------
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
//
|
|
// ----------------------------------------------------------------------------
|
|
// Copyright © 2003-2018 Natalia Portillo
|
|
*******************************************************************************/
|
|
}
|
|
@page
|
|
@model LoginModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Log in";
|
|
}
|
|
|
|
<h2>@ViewData["Title"]</h2>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<section>
|
|
<form method="post">
|
|
<h4>Use a local account to log in.</h4>
|
|
<hr />
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
<div class="form-group">
|
|
<label asp-for="Input.Email"></label>
|
|
<input asp-for="Input.Email" class="form-control" />
|
|
<span asp-validation-for="Input.Email" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Input.Password"></label>
|
|
<input asp-for="Input.Password" class="form-control" />
|
|
<span asp-validation-for="Input.Password" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="checkbox">
|
|
<label asp-for="Input.RememberMe">
|
|
<input asp-for="Input.RememberMe" />
|
|
@Html.DisplayNameFor(m => m.Input.RememberMe)
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-default">Log in</button>
|
|
</div>
|
|
<div class="form-group">
|
|
<p>
|
|
<a asp-page="./ForgotPassword">Forgot your password?</a>
|
|
</p>
|
|
<p>
|
|
<a asp-page="./Register" asp-route-returnUrl="@Model.ReturnUrl">Register as a new user</a>
|
|
</p>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</div>
|
|
<div class="col-md-6 col-md-offset-2">
|
|
<section>
|
|
<h4>Use another service to log in.</h4>
|
|
<hr />
|
|
@{
|
|
if ((Model.ExternalLogins?.Count ?? 0) == 0)
|
|
{
|
|
<div>
|
|
<p>
|
|
There are no external authentication services configured. See <a href="https://go.microsoft.com/fwlink/?LinkID=532715">this article</a>
|
|
for details on setting up this ASP.NET application to support logging in via external services.
|
|
</p>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<form asp-page="./ExternalLogin" asp-route-returnUrl="@Model.ReturnUrl" method="post" class="form-horizontal">
|
|
<div>
|
|
<p>
|
|
@foreach (var provider in Model.ExternalLogins)
|
|
{
|
|
<button type="submit" class="btn btn-default" name="provider" value="@provider.Name" title="Log in using your @provider.DisplayName account">@provider.DisplayName</button>
|
|
}
|
|
</p>
|
|
</div>
|
|
</form>
|
|
}
|
|
}
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|