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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. }
  11. echo $ENV->PASSWORD_ADVICE; ?>
  12. <form class="auth_form" name="recovery" id="recoverform" method="post" action="" onsubmit="return formVal();">
  13. <input type="hidden" name="key"
  14. value="<?=display_str($_REQUEST['key'])?>" />
  15. <table>
  16. <tr>
  17. <td>
  18. <strong id="pass_strength"></strong>
  19. </td>
  20. <td>
  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. </td>
  24. </tr>
  25. <tr>
  26. <td>
  27. <strong id="pass_match"></strong>
  28. </td>
  29. <td>
  30. <input type="password" minlength="15" name="verifypassword" id="new_pass_2" class="inputtext" size="40"
  31. placeholder="Confirm Password" pattern=".{15,307200}" required style="width: 250px !important;">
  32. </td>
  33. </tr>
  34. <tr>
  35. <td></td>
  36. <td>
  37. <input type="submit" name="reset" value="Reset" class="submit">
  38. </td>
  39. </tr>
  40. </table>
  41. </form>
  42. <?php
  43. } else { ?>
  44. <p>Your password has been successfully reset.</p>
  45. <p>Please <a href="login.php">click here</a> to log in using your new password.</p>
  46. <?php
  47. }
  48. View::show_footer(['recover' => true]);