From e289f7527462fc22e0e7ff0439bb97052a9e309d Mon Sep 17 00:00:00 2001 From: Gytautas Date: Fri, 17 Nov 2023 10:28:16 +0200 Subject: [PATCH] fix: naming of error messages changes --- src/Validator/UserCredentialsValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Validator/UserCredentialsValidator.php b/src/Validator/UserCredentialsValidator.php index edd5e09..d7e5e71 100644 --- a/src/Validator/UserCredentialsValidator.php +++ b/src/Validator/UserCredentialsValidator.php @@ -71,7 +71,7 @@ public function validate($data) // Validate password if (!$this->validatePassword($password)) { - $this->error = $this->module->l('Password length is incorrect', self::FILE_NAME); + $this->error = $this->module->l('Password length is invalid', self::FILE_NAME); $this->message = $this->module->l('Password must be between 6-255 characters long', self::FILE_NAME); } } @@ -109,4 +109,4 @@ private function validatePassword($password) { return strlen($password) >= 6 && strlen($password) <= 255; } -} \ No newline at end of file +}