1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00
Teknik/IdentityServer/Views/Account/Login.cshtml
2018-10-25 22:22:53 -07:00

61 lines
2.2 KiB
Plaintext

@model LoginViewModel
@{
string logoPath = "/images/logo-blue.svg";
// If we are using a CDN, let's replace it
if (Config.UseCdn)
{
if (!string.IsNullOrEmpty(Config.CdnHost))
{
logoPath = Config.CdnHost.TrimEnd('/') + logoPath;
}
}
}
@if (Config.UserConfig.LoginEnabled)
{
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<div class="row">
<img src="@logoPath" class="img-responsive center-block" alt="Teknik">
</div>
<br />
<div class="col-md-4 col-md-offset-4">
@await Html.PartialAsync("_ValidationSummary")
@if (Model.EnableLocalLogin)
{
<form class="form-horizontal" asp-route="Login">
<input type="hidden" asp-for="ReturnUrl" />
<div class="form-group">
<input class="form-control" placeholder="Username" asp-for="Username" autofocus>
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password" asp-for="Password" autocomplete="off">
</div>
@if (Model.AllowRememberLogin)
{
<div class="form-group abc-checkbox">
<input asp-for="RememberMe">
<label asp-for="RememberMe">Remember My Login</label>
</div>
}
<div class="form-group">
<button class="btn btn-primary" name="button" value="login">Log In</button>
<button class="btn btn-default" name="button" value="cancel">Cancel</button>
</div>
</form>
}
</div>
</div>
</div>
</div>
}
else
{
<h3>Authentication is currently disabled.</h3>
}