reset_3.php 1.4 KB

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