mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-17 14:02:11 +00:00
Disable extension password attributes
- This causes problems for updating existing extension passwords - For this reason disabling this recent addition
This commit is contained in:
@@ -386,31 +386,31 @@
|
||||
}
|
||||
|
||||
//require passwords with the defined required attributes: length, number, lower case, upper case, and special characters
|
||||
if (permission_exists('extension_password') && !empty($password)) {
|
||||
if (strlen($password) < $extension_password_length) {
|
||||
$invalid[] = $text['label-password'].": ".$text['label-characters'];
|
||||
}
|
||||
if ($extension_password_number) {
|
||||
if (!preg_match('/(?=.*[\d])/', $password)) {
|
||||
$invalid[] = $text['label-password'].": ".$text['label-numbers'];
|
||||
}
|
||||
}
|
||||
if ($extension_password_lowercase) {
|
||||
if (!preg_match('/(?=.*[a-z])/', $password)) {
|
||||
$invalid[] = $text['label-password'].": ".$text['label-lowercase_letters'];
|
||||
}
|
||||
}
|
||||
if ($extension_password_uppercase) {
|
||||
if (!preg_match('/(?=.*[A-Z])/', $password)) {
|
||||
$invalid[] = $text['label-password'].": ".$text['label-uppercase_letters'];
|
||||
}
|
||||
}
|
||||
if ($extension_password_special) {
|
||||
if (!preg_match('/(?=.*[\W])/', $password)) {
|
||||
$invalid[] = $text['label-password'].": ".$text['label-special_characters'];
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (permission_exists('extension_password') && !empty($password)) {
|
||||
// if (strlen($password) < $extension_password_length) {
|
||||
// $invalid[] = $text['label-password'].": ".$text['label-characters'];
|
||||
// }
|
||||
// if ($extension_password_number) {
|
||||
// if (!preg_match('/(?=.*[\d])/', $password)) {
|
||||
// $invalid[] = $text['label-password'].": ".$text['label-numbers'];
|
||||
// }
|
||||
// }
|
||||
// if ($extension_password_lowercase) {
|
||||
// if (!preg_match('/(?=.*[a-z])/', $password)) {
|
||||
// $invalid[] = $text['label-password'].": ".$text['label-lowercase_letters'];
|
||||
// }
|
||||
// }
|
||||
// if ($extension_password_uppercase) {
|
||||
// if (!preg_match('/(?=.*[A-Z])/', $password)) {
|
||||
// $invalid[] = $text['label-password'].": ".$text['label-uppercase_letters'];
|
||||
// }
|
||||
// }
|
||||
// if ($extension_password_special) {
|
||||
// if (!preg_match('/(?=.*[\W])/', $password)) {
|
||||
// $invalid[] = $text['label-password'].": ".$text['label-special_characters'];
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
//return if error
|
||||
if (message::count() != 0 || !empty($invalid)) {
|
||||
|
||||
Reference in New Issue
Block a user