login-mfa.html.php 709 B

1234567891011121314151617
  1. <?php if (!defined('HTMLY')) die('HTMLy'); ?>
  2. <?php
  3. $_SESSION["mfa_uid"] = $username;
  4. $_SESSION["mfa_pwd"] = $password;
  5. ?>
  6. <style>.error-message ul {margin:0;padding:0;}</style>
  7. <?php if (isset($error)) { ?>
  8. <div class="error-message"><?php echo $error ?></div>
  9. <?php } ?>
  10. <h1><?php echo i18n('Login');?></h1>
  11. <form method="POST" action="login-mfa">
  12. <input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
  13. <label><?php echo i18n('MFACode');?></label>
  14. <input type="text" class="form-control" name="mfacode" placeholder="<?php echo i18n('verify_code'); ?>"/>
  15. <br>
  16. <input type="submit" class="btn btn-primary" name="submit" value="<?php echo i18n('Login');?>"/>
  17. </form>