2020-08-17 18:16:50 +03:00
|
|
|
<?php /** @var \OCP\IL10N $l */ ?>
|
2017-03-31 10:16:22 +03:00
|
|
|
<?php
|
2021-05-18 10:22:07 +03:00
|
|
|
script('user_ldap', 'renewPassword');
|
2017-03-31 10:16:22 +03:00
|
|
|
style('user_ldap', 'renewPassword');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form method="post" name="renewpassword" id="renewpassword" action="<?php p(\OC::$server->getURLGenerator()->linkToRoute('user_ldap.renewPassword.tryRenewPassword')); ?>">
|
|
|
|
<fieldset>
|
|
|
|
<div class="warning title">
|
|
|
|
<?php p($l->t('Please renew your password.')); ?><br>
|
|
|
|
</div>
|
2020-04-10 15:19:56 +03:00
|
|
|
<?php foreach ($_['messages'] as $message): ?>
|
2017-03-31 10:16:22 +03:00
|
|
|
<div class="warning">
|
|
|
|
<?php p($message); ?><br>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
2018-04-25 10:54:33 +03:00
|
|
|
<?php if (isset($_['internalexception']) && $_['internalexception']): ?>
|
2017-03-31 10:16:22 +03:00
|
|
|
<div class="warning">
|
|
|
|
<?php p($l->t('An internal error occurred.')); ?><br>
|
|
|
|
<small><?php p($l->t('Please try again or contact your administrator.')); ?></small>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div id="message" class="hidden">
|
|
|
|
<img class="float-spinner" alt=""
|
|
|
|
src="<?php p(image_path('core', 'loading-dark.gif'));?>">
|
|
|
|
<span id="messageText"></span>
|
|
|
|
<!-- the following div ensures that the spinner is always inside the #message div -->
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
</div>
|
|
|
|
<p class="grouptop">
|
|
|
|
<input type="password" id="oldPassword" name="oldPassword"
|
|
|
|
placeholder="<?php echo $l->t('Current password');?>"
|
|
|
|
autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/>
|
|
|
|
<label for="oldPassword" class="infield"><?php p($l->t('Current password')); ?></label>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class="groupbottom">
|
2019-09-27 09:11:44 +03:00
|
|
|
<input type="checkbox" id="personal-show" name="show" class="hidden-visually" /><label for="personal-show"></label>
|
2017-03-31 10:16:22 +03:00
|
|
|
<label id="newPassword-label" for="newPassword" class="infield"><?php p($l->t('New password')); ?></label>
|
|
|
|
<input type="password" id="newPassword" name="newPassword"
|
|
|
|
placeholder="<?php echo $l->t('New password');?>"
|
|
|
|
data-typetoggle="#personal-show" autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<input type="submit" id="submit" class="login primary icon-confirm-white" title="" value="<?php p($l->t('Renew password')); ?>"/>
|
|
|
|
|
2018-04-24 10:47:31 +03:00
|
|
|
<?php if (!empty($_['invalidpassword'])) { ?>
|
2017-03-31 10:16:22 +03:00
|
|
|
<p class="warning">
|
|
|
|
<?php p($l->t('Wrong password.')); ?>
|
|
|
|
</p>
|
|
|
|
<?php } ?>
|
|
|
|
<p id="cancel-container" class="info">
|
|
|
|
<a id="cancel" href="<?php p($_['cancelLink']); ?>">
|
|
|
|
<?php p($l->t('Cancel')); ?>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<input type="hidden" name="user" id="user" value="<?php p($_['user']) ?>">
|
|
|
|
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
|
|
|
|
</fieldset>
|
|
|
|
</form>
|