124 lines
5.2 KiB
Plaintext
124 lines
5.2 KiB
Plaintext
@model watcher_monitoring.Models.LoginViewModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Login";
|
|
Layout = null;
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>@ViewData["Title"] - Watcher Monitoring</title>
|
|
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
|
<style>
|
|
body {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.login-container {
|
|
max-width: 400px;
|
|
width: 100%;
|
|
}
|
|
.login-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
|
|
padding: 40px;
|
|
}
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
.login-header h2 {
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
.login-header p {
|
|
color: #666;
|
|
margin-top: 10px;
|
|
}
|
|
.btn-login {
|
|
width: 100%;
|
|
padding: 12px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border: none;
|
|
}
|
|
.btn-login:hover {
|
|
background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
|
|
}
|
|
.form-control:focus {
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-container">
|
|
<div class="login-card">
|
|
<div class="login-header">
|
|
<h2>🔒 Watcher Monitoring</h2>
|
|
<p>Bitte melden Sie sich an</p>
|
|
</div>
|
|
|
|
@if (TempData["Error"] != null)
|
|
{
|
|
<div class="alert alert-danger" role="alert">
|
|
@TempData["Error"]
|
|
</div>
|
|
}
|
|
|
|
<form asp-action="Login" asp-controller="Auth" method="post">
|
|
<div class="form-group mb-3">
|
|
<label asp-for="Username" class="form-label">Benutzername</label>
|
|
<input asp-for="Username" class="form-control" placeholder="Benutzername eingeben" autofocus />
|
|
<span asp-validation-for="Username" class="text-danger"></span>
|
|
</div>
|
|
|
|
<div class="form-group mb-4">
|
|
<label asp-for="Password" class="form-label">Passwort</label>
|
|
<input asp-for="Password" type="password" class="form-control" placeholder="Passwort eingeben" />
|
|
<span asp-validation-for="Password" class="text-danger"></span>
|
|
</div>
|
|
|
|
<div class="form-check mb-3">
|
|
<input asp-for="RememberMe" type="checkbox" class="form-check-input" />
|
|
<label asp-for="RememberMe" class="form-check-label">
|
|
Angemeldet bleiben
|
|
</label>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary btn-login">Anmelden</button>
|
|
</form>
|
|
|
|
@if (ViewData["OidcEnabled"] is true)
|
|
{
|
|
<hr class="my-4" />
|
|
<div class="text-center">
|
|
<p class="text-muted mb-3">oder</p>
|
|
<a href="@Url.Action("OidcLogin", "Auth", new { returnUrl = ViewData["ReturnUrl"] })" class="btn btn-outline-secondary w-100">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-shield-lock me-2" viewBox="0 0 16 16">
|
|
<path d="M5.338 1.59a61 61 0 0 0-2.837.856.48.48 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.7 10.7 0 0 0 2.287 2.233c.346.244.652.42.893.533q.18.085.293.118a1 1 0 0 0 .101.025 1 1 0 0 0 .1-.025q.114-.034.294-.118c.24-.113.547-.29.893-.533a10.7 10.7 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.48.48 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.855C9.552 1.29 8.531 1.067 8 1.067c-.53 0-1.552.223-2.662.524zM5.072.56C6.157.265 7.31 0 8 0s1.843.265 2.928.56c1.11.3 2.229.655 2.887.87a1.54 1.54 0 0 1 1.044 1.262c.596 4.477-.787 7.795-2.465 9.99a11.8 11.8 0 0 1-2.517 2.453 7 7 0 0 1-1.048.625c-.28.132-.581.24-.829.24s-.548-.108-.829-.24a7 7 0 0 1-1.048-.625 11.8 11.8 0 0 1-2.517-2.453C1.928 10.487.545 7.169 1.141 2.692A1.54 1.54 0 0 1 2.185 1.43 63 63 0 0 1 5.072.56"/>
|
|
<path d="M9.5 6.5a1.5 1.5 0 0 1-1 1.415l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99a1.5 1.5 0 1 1 2-1.415"/>
|
|
</svg>
|
|
Mit oidc anmelden
|
|
</a>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
|
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
|
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
|
</body>
|
|
</html>
|