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.7KB

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