| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/nextcloud/apps/password_policy/templates/ |
Upload File : |
<?php
/**
* @copyright Copyright (c) 2016 Bjoern Schiessle <bjoern@schiessle.org>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/** @var array $_ */
/** @var \OCP\IL10N $l */
script('password_policy', 'settings-admin');
style('password_policy', 'settings-admin');
?>
<div id="password-policy" class="section">
<h2 class="inlineblock"><?php p($l->t('Password policy')); ?></h2>
<div id="password-policy-settings-msg" class="msg success inlineblock" style="display: none;">Saved</div>
<p>
<label class="password-policy-number-option">
<input id="password-policy-min-length" type="number" value="<?php p($_['minLength']) ?>" />
<span><?php p($l->t('Minimal length')) ?></span>
</label>
</p>
<p>
<label class="password-policy-number-option">
<input id="password-policy-history-size" type="number" value="<?php p($_['historySize']) ?>" />
<span><?php p($l->t('User password history')) ?></span>
</label>
</p>
<p>
<label class="password-policy-number-option">
<input id="password-policy-expiration" type="number" value="<?php p($_['expiration']) ?>" />
<span><?php p($l->t('days until user password expires')) ?></span>
</label>
</p>
<p>
<label class="password-policy-number-option">
<input id="password-policy-failed-login" type="number" value="<?php p($_['maximumLoginAttempts']) ?>" />
<span><?php p($l->t('login attempts before the user account is blocked. (0 for no limit)')) ?></span>
</label>
</p>
<p id="enforceNonCommonPassword">
<input type="checkbox" name="password-policy-enforce-non-common-password" id="password-policy-enforce-non-common-password" class="checkbox"
value="1" <?php if ($_['enforceNonCommonPassword']) print_unescaped('checked="checked"'); ?> />
<label for="password-policy-enforce-non-common-password"><?php p($l->t('Forbid common passwords'));?></label><br/>
</p>
<p id="enforceLowerUpperCase">
<input type="checkbox" name="password-policy-enforce-upper-lower-case" id="password-policy-enforce-upper-lower-case" class="checkbox"
value="1" <?php if ($_['enforceUpperLowerCase']) print_unescaped('checked="checked"'); ?> />
<label for="password-policy-enforce-upper-lower-case"><?php p($l->t('Enforce upper and lower case characters'));?></label><br/>
</p>
<p id="enforceNumericCharacters">
<input type="checkbox" name="password-policy-enforce-numeric-characters" id="password-policy-enforce-numeric-characters" class="checkbox"
value="1" <?php if ($_['enforceNumericCharacters']) print_unescaped('checked="checked"'); ?> />
<label for="password-policy-enforce-numeric-characters"><?php p($l->t('Enforce numeric characters'));?></label><br/>
</p>
<p id="enforceSpecialCharacters">
<input type="checkbox" name="password-policy-enforce-special-characters" id="password-policy-enforce-special-characters" class="checkbox"
value="1" <?php if ($_['enforceSpecialCharacters']) print_unescaped('checked="checked"'); ?> />
<label for="password-policy-enforce-special-characters"><?php p($l->t('Enforce special characters'));?></label><br/>
</p>
<p id="enforceHaveIBeenPwned">
<input type="checkbox" name="password-policy-enforce-have-i-been-pwned" id="password-policy-enforce-have-i-been-pwned" class="checkbox"
value="1" <?php if ($_['enforceHaveIBeenPwned']) print_unescaped('checked="checked"'); ?> />
<label for="password-policy-enforce-have-i-been-pwned"><?php p($l->t('Check password against the list of breached passwords from haveibeenpwned.com'));?></label><br/>
</p>
<p class="password-policy-settings-hint">
<?php p($l->t('This check creates a hash of the password and sends the first 5 characters of this hash to the haveibeenpwned.com API to retrieve a list of all hashes that start with those. Then it checks on the Nextcloud instance if the password hash is in the result set.'));?>
</p>
</div>