Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

u2f.php 802B

123456789101112131415161718192021222324
  1. <?
  2. if (!empty($LoggedUser['ID'])) {
  3. header('Location: login.php');
  4. die();
  5. }
  6. if (!isset($_POST['username']) || !isset($_POST['password']) || !isset($U2FRegs)) {
  7. header('Location: login.php');
  8. die();
  9. }
  10. $U2FReq = json_encode($U2F->getAuthenticateData($U2FRegs));
  11. View::show_header('U2F Authentication'); ?>
  12. <form id="u2f_sign_form" action="login.php" method="post">
  13. <input type="hidden" name="username" value="<?=$_POST['username']?>">
  14. <input type="hidden" name="password" value="<?=$_POST['password']?>">
  15. <input type="hidden" name="u2f-request" value='<?=$U2FReq?>'>
  16. <input type="hidden" name="u2f-response">
  17. </form>
  18. This account is protected by a Universal Two Factor token. To continue logging in, please insert your U2F token and press it if necessary.
  19. <? View::show_footer(); ?>