From 6c25906378201c6e148f1347d3a3681b3cb859bc Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 29 Jan 2026 05:36:56 -0700 Subject: [PATCH] Disable extension password attributes - This causes problems for updating existing extension passwords - For this reason disabling this recent addition --- app/extensions/extension_edit.php | 50 +++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index cc7eea155d..f6c88a67a8 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -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)) {