Commit 0ac7e154 authored by Pascal Rinker's avatar Pascal Rinker Committed by Thomas Löffler
Browse files

[FEATURE] Allow to disable password change dialog for admin users

parent 08b06acf
......@@ -55,6 +55,11 @@ class PasswordExpirationUtility
// get configuration of a secure password
$extConf = \SpoonerWeb\BeSecurePw\Configuration\ExtensionConfiguration::getExtensionConfig();
// check if user passwords of admins do not expire
if ((bool)$extConf['ignorePasswordChangeForAdmins'] && $GLOBALS['BE_USER']->isAdmin()) {
return false;
}
$validUntilConfiguration = trim($extConf['validUntil']);
$validUntil = 0;
......
# cat=basic/enable/60; type=string; label= Period to remind the user (after login) for setting a new password. Please use english (e.g. "14 days")
# cat=basic/enable/60; type=string; label= Period to remind the user (after login) for setting a new password. Please use english (e.g. "14 days")
validUntil = 14 days
# cat=basic/enable/60; type=boolean; label= Force changing the password: This disables all modules except user_setup to force a change of the password when the validUntil period is over or the checkbox in the be_user record is set
# cat=basic/enable/60; type=boolean; label= Force changing the password: This disables all modules except user_setup to force a change of the password when the validUntil period is over or the checkbox in the be_user record is set
forcePasswordChange = 0
# cat=basic/enable/60; type=int [5-20]; label= Length of the password: Here you can set the minimal length of the BE user password. If nothing is set, default is 8.
# cat=basic/enable/60; type=boolean; label= Disable 'forcePasswordChange' functionality for admin users.
ignorePasswordChangeForAdmins = 0
# cat=basic/enable/60; type=int [5-20]; label= Length of the password: Here you can set the minimal length of the BE user password. If nothing is set, default is 8.
passwordLength = 8
# cat=basic/enable/60; type=boolean; label= Lowercase characters: The password must contain at least one lowercase character (a-z).
# cat=basic/enable/60; type=boolean; label= Lowercase characters: The password must contain at least one lowercase character (a-z).
lowercaseChar = 1
# cat=basic/enable/60; type=boolean; label= Capital characters: The password must contain at least one capital character (A-Z).
# cat=basic/enable/60; type=boolean; label= Capital characters: The password must contain at least one capital character (A-Z).
capitalChar = 1
# cat=basic/enable/60; type=boolean; label= Digits: The password must contain at least one digit (0-9).
# cat=basic/enable/60; type=boolean; label= Digits: The password must contain at least one digit (0-9).
digit = 1
# cat=basic/enable/60; type=boolean; label= Special characters: The password must contain at least one special character (!$%&/=?,.).
# cat=basic/enable/60; type=boolean; label= Special characters: The password must contain at least one special character (!$%&/=?,.).
specialChar = 1
# cat=basic/enable/60; type=int [2-4]; label= Fitting patterns: How many patterns from above must fit to make the password secure
# cat=basic/enable/60; type=int [2-4]; label= Fitting patterns: How many patterns from above must fit to make the password secure
patterns = 2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment