BioTorrents.de’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.

recover_step2.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. declare(strict_types=1);
  3. $ENV = ENV::go();
  4. $Twig = Twig::go();
  5. View::show_header('Recover Password', 'validate,password_validate');
  6. echo '<h2>Reset your password</h2>';
  7. if (empty($PassWasReset)) {
  8. if (!empty($Err)) { ?>
  9. <strong class="important_text"><?=display_str($Err)?></strong><br /><br />
  10. <?php } ?>
  11. <form class="auth_form" name="recovery" id="recoverform" method="post" action="" onsubmit="return formVal();">
  12. <input type="hidden" name="key"
  13. value="<?=display_str($_REQUEST['key'])?>" />
  14. <table>
  15. <tr>
  16. <td>
  17. <strong id="pass_strength"></strong>
  18. </td>
  19. <td>
  20. <?=
  21. $Twig->render('input/passphrase.html', [
  22. 'name' => 'password',
  23. 'id' => 'new_pass_1',
  24. 'placeholder' => 'New passphrase'
  25. ]) ?>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td>
  30. <strong id="pass_match"></strong>
  31. </td>
  32. <td>
  33. <?=
  34. $Twig->render('input/passphrase.html', [
  35. 'name' => 'verifypassword',
  36. 'id' => 'new_pass_2',
  37. 'placeholder' => 'Confirm passphrase'
  38. ]) ?>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td></td>
  43. <td>
  44. <input type="submit" name="reset" value="Reset" class="submit">
  45. </td>
  46. </tr>
  47. </table>
  48. </form>
  49. <?php
  50. } else { ?>
  51. <p>Your password has been successfully reset.</p>
  52. <p>Please <a href="login.php">click here</a> to log in using your new password.</p>
  53. <?php
  54. }
  55. View::show_footer(['recover' => true]);