From b704ca5eaac704710d104875eec332c8646dc3be Mon Sep 17 00:00:00 2001 From: Bernhard Enders Date: Tue, 2 May 2023 12:27:54 -0300 Subject: [PATCH 1/3] Fixed typo in getMaxLengthRule method Changed method name from getMaxLenghtRule to getMaxLengthRule --- src/Authentication/Passwords.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/Passwords.php b/src/Authentication/Passwords.php index 3eca6c71f..3a5b7b041 100644 --- a/src/Authentication/Passwords.php +++ b/src/Authentication/Passwords.php @@ -143,7 +143,7 @@ public function check(string $password, ?User $user = null): Result /** * Returns the validation rule for max length. */ - public static function getMaxLenghtRule(): string + public static function getMaxLengthRule(): string { if (config('Auth')->hashAlgorithm === PASSWORD_BCRYPT) { return 'max_byte[72]'; From c14a141b722679658f2033634addb612db7a3eae Mon Sep 17 00:00:00 2001 From: Bernhard Enders Date: Tue, 2 May 2023 12:29:34 -0300 Subject: [PATCH 2/3] Fixed typo in name getMaxLengthRule --- src/Controllers/LoginController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/LoginController.php b/src/Controllers/LoginController.php index dc78426d7..dd27b97bf 100644 --- a/src/Controllers/LoginController.php +++ b/src/Controllers/LoginController.php @@ -93,7 +93,7 @@ protected function getValidationRules(): array ], 'password' => [ 'label' => 'Auth.password', - 'rules' => 'required|' . Passwords::getMaxLenghtRule(), + 'rules' => 'required|' . Passwords::getMaxLengthRule(), 'errors' => [ 'max_byte' => 'Auth.errorPasswordTooLongBytes', ], From 0a63c53f5cf1f5f410823050c87d5e6e2d65fc1d Mon Sep 17 00:00:00 2001 From: Bernhard Enders Date: Tue, 2 May 2023 12:31:05 -0300 Subject: [PATCH 3/3] Fixed typo in getMaxLengthRule --- src/Controllers/RegisterController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/RegisterController.php b/src/Controllers/RegisterController.php index 6f394faa0..500b1ea36 100644 --- a/src/Controllers/RegisterController.php +++ b/src/Controllers/RegisterController.php @@ -197,7 +197,7 @@ protected function getValidationRules(): array ], 'password' => [ 'label' => 'Auth.password', - 'rules' => 'required|' . Passwords::getMaxLenghtRule() . '|strong_password', + 'rules' => 'required|' . Passwords::getMaxLengthRule() . '|strong_password', 'errors' => [ 'max_byte' => 'Auth.errorPasswordTooLongBytes', ],