Skip to content

Commit

Permalink
Merge pull request #728 from bgeneto/develop
Browse files Browse the repository at this point in the history
fix: typo in `getMaxLengthRule()` method name
  • Loading branch information
kenjis authored May 2, 2023
2 parents c8ea54b + 0a63c53 commit 0ceb817
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Authentication/Passwords.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]';
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down

0 comments on commit 0ceb817

Please sign in to comment.