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

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