formLogin.phtml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class="prompt">
  2. <h1><?php echo _t('gen.auth.login'); ?></h1>
  3. <?php if (!max_registrations_reached()) { ?>
  4. <a href="<?php echo _url('auth', 'register'); ?>"><?php echo _t('gen.auth.registration.ask'); ?></a>
  5. <?php } ?>
  6. <form id="crypto-form" method="post" action="<?php echo _url('auth', 'login'); ?>">
  7. <input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
  8. <div>
  9. <label for="username"><?php echo _t('gen.auth.username'); ?></label>
  10. <input type="text" id="username" name="username" autocomplete="username" size="16" required="required" pattern="<?php echo FreshRSS_user_Controller::USERNAME_PATTERN; ?>" autofocus="autofocus" />
  11. </div>
  12. <div>
  13. <label for="passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
  14. <input type="password" id="passwordPlain" required="required" />
  15. <input type="hidden" id="challenge" name="challenge" /><br />
  16. <noscript><strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  17. </div>
  18. <div>
  19. <label class="checkbox" for="keep_logged_in">
  20. <input type="checkbox" name="keep_logged_in" id="keep_logged_in" value="1" />
  21. <?php echo _t('gen.auth.keep_logged_in', $this->cookie_days); ?>
  22. </label>
  23. <br />
  24. </div>
  25. <div>
  26. <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('gen.auth.login'); ?></button>
  27. </div>
  28. </form>
  29. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
  30. </div>