PHP_AdminTool_Projekt/public/views/login.php
2025-11-28 15:23:25 +01:00

67 lines
2.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
/** @var string|null $error */
?>
<div class="row justify-content-center">
<div class="col-xl-6 col-lg-7 col-md-8">
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<!-- Nested Row within Card Body -->
<div class="row">
<div class="col-lg-12">
<div class="p-5">
<div class="text-center mb-4">
<h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1>
<p class="text-muted mb-0">
Anmeldung gegen Active Directory per LDAP/LDAPS.
</p>
</div>
<?php if ($error !== null): ?>
<div class="alert alert-danger" role="alert">
<?php echo htmlspecialchars($error, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); ?>
</div>
<?php endif; ?>
<form class="user" action="index.php?route=login.submit" method="post" novalidate>
<div class="form-group">
<label for="username">Benutzername</label>
<input type="text"
class="form-control form-control-user"
id="username"
name="username"
placeholder="z. B. admin"
required>
</div>
<div class="form-group">
<label for="password">Passwort</label>
<input type="password"
class="form-control form-control-user"
id="password"
name="password"
placeholder="Passwort"
required>
</div>
<button type="submit" class="btn btn-primary btn-user btn-block">
Anmelden
</button>
</form>
<hr>
<p class="small text-muted mb-0">
Die Zugangsdaten werden nicht gespeichert sie werden nur zur Anmeldung am AD verwendet.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>