Skip to content

Commit

Permalink
Update Password.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Sep 22, 2020
1 parent fc22161 commit d32755c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Rules/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,21 @@ public function message()
case $this->requireUppercase
&& $this->requireNumeric
&& ! $this->requireSpecialCharacter:
return __('The :attribute must be at least :length characters and contain at least one uppercase character and number.', [
return __('The :attribute must be at least :length characters and contain at least one uppercase character and one number.', [
'length' => $this->length,
]);

case $this->requireUppercase
&& $this->requireSpecialCharacter
&& ! $this->requireNumeric:
return __('The :attribute must be at least :length characters and contain at least one uppercase character and special character.', [
return __('The :attribute must be at least :length characters and contain at least one uppercase character and one special character.', [
'length' => $this->length,
]);

case $this->requireUppercase
&& $this->requireNumeric
&& $this->requireSpecialCharacter:
return __('The :attribute must be at least :length characters and contain at least one uppercase character, one number and special character.', [
return __('The :attribute must be at least :length characters and contain at least one uppercase character, one number, and one special character.', [
'length' => $this->length,
]);

Expand Down

0 comments on commit d32755c

Please sign in to comment.