laravel / fortify

Backend controllers and scaffolding for Laravel authentication.

Home Page:https://laravel.com/docs/fortify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing numeric and special character validation password message

billygl opened this issue · comments

  • Fortify Version: 1.7.5
  • Laravel Version: 8.23.1
  • PHP Version: 7.4.9
  • Database Driver & Version: MariaDB 10.3.23-MariaDB

Description:

There is not the following message in https://github.com/laravel/fortify/blob/1.x/src/Rules/Password.php:
The :attribute must be at least :length characters, one number, and contain at least one special character.

Steps To Reproduce:

Use the chaining

 (new Password)
                    ->requireNumeric()
                    ->requireSpecialCharacter()

It shows the default message:
The :attribute must be at least :length characters.

Feel free to PR something.