1
0

renewpassword.php 2.6 KB

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