login.php 885 B

12345678910111213141516171819202122232425
  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-mb20">
  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. <button type="submit" class="button">
  18. <i class="fas fa-right-to-bracket"></i><?= _("Next") ?>
  19. </button>
  20. </form>
  21. </div>
  22. </body>
  23. </html>