1
0

renewpassword.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php /** @var \OCP\IL10N $l */ ?>
  2. <?php
  3. script('user_ldap', 'renewPassword');
  4. style('user_ldap', 'renewPassword');
  5. ?>
  6. <form method="post" name="renewpassword" id="renewpassword" action="<?php p(\OC::$server->getURLGenerator()->linkToRoute('user_ldap.renewPassword.tryRenewPassword')); ?>">
  7. <fieldset>
  8. <div class="warning title">
  9. <?php p($l->t('Please renew your password.')); ?><br>
  10. </div>
  11. <?php foreach ($_['messages'] as $message): ?>
  12. <div class="warning">
  13. <?php p($message); ?><br>
  14. </div>
  15. <?php endforeach; ?>
  16. <?php if (isset($_['internalexception']) && $_['internalexception']): ?>
  17. <div class="warning">
  18. <?php p($l->t('An internal error occurred.')); ?><br>
  19. <small><?php p($l->t('Please try again or contact your administrator.')); ?></small>
  20. </div>
  21. <?php endif; ?>
  22. <div id="message" class="hidden">
  23. <img class="float-spinner" alt=""
  24. src="<?php p(image_path('core', 'loading-dark.gif'));?>">
  25. <span id="messageText"></span>
  26. <!-- the following div ensures that the spinner is always inside the #message div -->
  27. <div style="clear: both;"></div>
  28. </div>
  29. <p class="grouptop">
  30. <input type="password" id="oldPassword" name="oldPassword"
  31. placeholder="<?php echo $l->t('Current password');?>"
  32. autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/>
  33. <label for="oldPassword" class="infield"><?php p($l->t('Current password')); ?></label>
  34. </p>
  35. <p class="groupbottom">
  36. <input type="checkbox" id="personal-show" name="show" class="hidden-visually" /><label for="personal-show"></label>
  37. <label id="newPassword-label" for="newPassword" class="infield"><?php p($l->t('New password')); ?></label>
  38. <input type="password" id="newPassword" name="newPassword"
  39. placeholder="<?php echo $l->t('New password');?>"
  40. data-typetoggle="#personal-show" autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/>
  41. </p>
  42. <input type="submit" id="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Renew password')); ?>"/>
  43. <?php if (!empty($_['invalidpassword'])) { ?>
  44. <p class="warning">
  45. <?php p($l->t('Wrong password.')); ?>
  46. </p>
  47. <?php } ?>
  48. <p id="cancel-container" class="info">
  49. <a id="cancel" href="<?php p($_['cancelLink']); ?>">
  50. <?php p($l->t('Cancel')); ?>
  51. </a>
  52. </p>
  53. <input type="hidden" name="user" id="user" value="<?php p($_['user']) ?>">
  54. <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
  55. </fieldset>
  56. </form>