diff options
Diffstat (limited to 'apps/user_ldap/templates')
-rw-r--r-- | apps/user_ldap/templates/renewpassword.php | 73 | ||||
-rw-r--r-- | apps/user_ldap/templates/settings.php | 1 |
2 files changed, 74 insertions, 0 deletions
diff --git a/apps/user_ldap/templates/renewpassword.php b/apps/user_ldap/templates/renewpassword.php new file mode 100644 index 00000000000..7b1df75e06b --- /dev/null +++ b/apps/user_ldap/templates/renewpassword.php @@ -0,0 +1,73 @@ +<?php /** @var $l OC_L10N */ ?> +<?php +script('core', [ + 'jquery-showpassword', +]); +script('user_ldap', [ + 'renewPassword', +]); +style('user_ldap', 'renewPassword'); +\OC_Util::addVendorScript('strengthify/jquery.strengthify'); +\OC_Util::addVendorStyle('strengthify/strengthify'); + +?> + +<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]--> +<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> + <?php foreach($_['messages'] as $message): ?> + <div class="warning"> + <?php p($message); ?><br> + </div> + <?php endforeach; ?> + <?php if (isset($_['internalexception']) && ($_['internalexception'])): ?> + <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"> + <input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label> + <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')); ?>"/> + + <?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?> + <a id="lost-password" class="warning" href="<?php p($_['resetPasswordLink']); ?>"> + <?php p($l->t('Wrong password. Reset it?')); ?> + </a> + <?php } else if (!empty($_['invalidpassword'])) { ?> + <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> diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php index 6942b2eb2b1..0d4ca804dd3 100644 --- a/apps/user_ldap/templates/settings.php +++ b/apps/user_ldap/templates/settings.php @@ -103,6 +103,7 @@ style('user_ldap', 'settings'); <p><label for="ldap_paging_size"><?php p($l->t('Paging chunksize'));?></label><input type="number" id="ldap_paging_size" name="ldap_paging_size" title="<?php p($l->t('Chunksize used for paged LDAP searches that may return bulky results like user or group enumeration. (Setting it 0 disables paged LDAP searches in those situations.)'));?>" data-default="<?php p($_['ldap_paging_size_default']); ?>" /></p> <p><label for="ldap_turn_on_pwd_change"><?php p($l->t('Enable LDAP password changes per user'));?></label><span class="inlinetable"><span class="tablerow left"><input type="checkbox" id="ldap_turn_on_pwd_change" name="ldap_turn_on_pwd_change" value="1" data-default="<?php p($_['ldap_turn_on_pwd_change_default']); ?>" title="<?php p($l->t('Allow LDAP users to change their password and allow Super Administrators and Group Administrators to change the password of their LDAP users. Only works when access control policies are configured accordingly on the LDAP server. As passwords are sent in plaintext to the LDAP server, transport encryption must be used and password hashing should be configured on the LDAP server.'));?>" /><span class="tablecell"><?php p($l->t('(New password is sent as plain text to LDAP)'));?></span></span> </span><br/></p> + <p><label for="ldap_default_ppolicy_dn"><?php p($l->t('Default password policy DN'));?></label><input type="text" id="ldap_default_ppolicy_dn" name="ldap_default_ppolicy_dn" title="<?php p($l->t('The DN of a default password policy that will be used for password expiry handling. Works only when LDAP password changes per user are enabled and is only supported by OpenLDAP. Leave empty to disable password expiry handling.'));?>" data-default="<?php p($_['ldap_default_ppolicy_dn_default']); ?>" /></p> </div> <h3><?php p($l->t('Special Attributes'));?></h3> <div> |