login_a.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <?= sprintf(_("Welcome to %s"), htmlentities($_SESSION["APP_NAME"])) ?>
  9. </h1>
  10. <?php if (!empty($error)) { ?>
  11. <p class="error"><?= $error ?></p>
  12. <?php } ?>
  13. <div class="u-mb10">
  14. <label for="username" class="form-label"><?= _("Username") ?></label>
  15. <input type="text" class="form-control" name="user" id="username" autocomplete="username" required autofocus>
  16. </div>
  17. <div class="u-mb20">
  18. <label for="password" class="form-label u-side-by-side">
  19. <?= _("Password") ?>
  20. <?php if ($_SESSION["POLICY_SYSTEM_PASSWORD_RESET"] !== "no") { ?>
  21. <a class="login-form-link" href="/reset/">
  22. <?= _("Forgot Password") ?>
  23. </a>
  24. <?php } ?>
  25. </label>
  26. <input type="password" class="form-control" name="password" id="password" autocomplete="current-password" required>
  27. </div>
  28. <button type="submit" class="button">
  29. <i class="fas fa-right-to-bracket"></i><?= _("Next") ?>
  30. </button>
  31. </form>
  32. </div>
  33. </body>
  34. </html>