renewpassword.php 2.5 KB

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