reauth.phtml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. ?>
  5. <main class="prompt">
  6. <h1><?= _t('gen.auth.reauth.header') ?></h1>
  7. <form name="crypto_form" class="crypto-form" method="post">
  8. <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
  9. <input type="hidden" id="username" value="<?= Minz_User::name() ?>" />
  10. <div class="form-group">
  11. <label for="passwordPlain"><?= _t('gen.auth.password') ?></label>
  12. <div class="stick">
  13. <input type="password" id="passwordPlain"<?= $this->auth_autofills['password'] !== '' ? ' value="' . $this->auth_autofills['password'] . '"' : '' ?>
  14. class="passwordPlain" required="required" />
  15. <button type="button" class="btn toggle-password"><?= _i('key') ?></button>
  16. </div>
  17. <input type="hidden" id="challenge" name="challenge" />
  18. <noscript><strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
  19. </div>
  20. <?php
  21. $reauth_time = FreshRSS_Context::systemConf()->reauth_time;
  22. ?>
  23. <p class="help"><?= _i('help') ?> <?= _t('gen.auth.reauth.tip', intval($reauth_time / 60)) ?></p>
  24. <div class="form-group form-group-actions">
  25. <button type="submit" class="btn btn-important" disabled="disabled">
  26. <?= _t('gen.auth.login') ?>
  27. </button>
  28. </div>
  29. </form>
  30. </main>