Single-sign-on and self-serve account management. https://netsyms.biz/apps/accounthub
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.

change_password.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. $_SESSION['check'] = "change_password";
  8. $username = (new User($_SESSION['login_uid']))->getUsername();
  9. ?>
  10. <form action="" method="POST">
  11. <div>
  12. <?php $Strings->get("password expired"); ?>
  13. </div>
  14. <div class="form-group">
  15. <label for="oldpassword"><?php $Strings->build("Current password for {user}", ["user" => htmlentities($username)]); ?></label>
  16. <div class="input-group">
  17. <div class="input-group-prepend">
  18. <span class="input-group-text"><i class="fas fa-lock"></i></span>
  19. </div>
  20. <input type="password" class="form-control" id="oldpassword" name="oldpassword" placeholder="" required autofocus>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label for="newpassword"><?php $Strings->get("New password"); ?></label>
  25. <div class="input-group">
  26. <div class="input-group-prepend">
  27. <span class="input-group-text"><i class="fas fa-lock"></i></span>
  28. </div>
  29. <input type="password" class="form-control" id="newpassword" name="newpassword" placeholder="" required>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label for="newpassword2"><?php $Strings->get("New password (again)"); ?></label>
  34. <div class="input-group">
  35. <div class="input-group-prepend">
  36. <span class="input-group-text"><i class="fas fa-lock"></i></span>
  37. </div>
  38. <input type="password" class="form-control" id="newpassword2" name="newpassword2" placeholder="" required>
  39. </div>
  40. </div>
  41. <div class="d-flex">
  42. <button type="submit" class="btn btn-primary ml-auto">
  43. <i class="fas fa-chevron-right"></i> <?php $Strings->get("continue"); ?>
  44. </button>
  45. </div>
  46. </form>