From e770d6a9728c8ab6d39e8ce78ecc118f9c50c1f1 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 22 Jun 2024 16:34:24 +0200 Subject: [PATCH] fix: password length when changed user password --- bl-kernel/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index 19f90a23..6cc07a8d 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -677,8 +677,8 @@ function changeUserPassword($args) $confirmPassword = $args['confirmPassword']; // Password length - if (Text::length($newPassword) < 6) { - Alert::set($L->g('Password must be at least 6 characters long'), ALERT_STATUS_FAIL); + if (Text::length($newPassword) < PASSWORD_LENGTH) { + Alert::set($L->g('Password must be at least ' . PASSWORD_LENGTH . ' characters long'), ALERT_STATUS_FAIL); return false; }