renewpassword.php 2.5 KB

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