login_1.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <div class="login animate__animated animate__zoomIn">
  2. <a href="/" class="u-block u-mb40">
  3. <img src="/images/logo.svg" alt="<?= htmlentities($_SESSION["APP_NAME"]) ?>" width="100" height="120">
  4. </a>
  5. <form id="form_login" method="post" action="/login/">
  6. <input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
  7. <h1 class="login-title">
  8. <?= _("Welcome") ?> <?= htmlspecialchars($_SESSION["login"]["username"]) ?>!
  9. </h1>
  10. <div class="u-mb20">
  11. <label for="password" class="form-label u-side-by-side">
  12. <?= _("Password") ?>
  13. <?php if ($_SESSION["POLICY_SYSTEM_PASSWORD_RESET"] !== "no") { ?>
  14. <a class="login-form-link" href="/reset/">
  15. <?= _("Forgot Password") ?>
  16. </a>
  17. <?php } ?>
  18. </label>
  19. <input type="password" class="form-control" name="password" id="password" autocomplete="current-password" required autofocus>
  20. </div>
  21. <div class="u-side-by-side">
  22. <button type="submit" class="button">
  23. <i class="fas fa-right-to-bracket"></i><?= _("Login") ?>
  24. </button>
  25. <a href="/login/?logout=true" class="button button-secondary">
  26. <?= _("Back") ?>
  27. </a>
  28. </div>
  29. </form>
  30. </div>
  31. </body>
  32. </html>