reset_2.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 method="get" action="/reset/">
  6. <h1 class="login-title">
  7. <?= _("Forgot Password") ?>
  8. </h1>
  9. <?php if (!empty($error)) { ?>
  10. <p class="error"><?= $error ?></p>
  11. <?php } ?>
  12. <p class="inline-success u-mb10">
  13. <?= _("Password reset code has been sent to your email address") ?>
  14. </p>
  15. <div class="u-mb20">
  16. <input type="hidden" name="action" value="confirm">
  17. <input type="hidden" name="token" value="<?= htmlentities($_SESSION["token"]) ?>">
  18. <input type="hidden" name="user" value="<?= htmlentities($_GET["user"]) ?>">
  19. <label for="code" class="form-label"><?= _("Reset Code") ?></label>
  20. <input type="text" class="form-control" name="code" id="code" required autofocus>
  21. </div>
  22. <div class="u-side-by-side">
  23. <button type="submit" class="button">
  24. <?= _("Confirm") ?>
  25. </button>
  26. <a href="/reset/" class="button button-secondary">
  27. <?= _("Back") ?>
  28. </a>
  29. </div>
  30. </form>
  31. </div>
  32. </body>
  33. </html>