emiliopedrollo/laravel-secure-passwords
Composer 安装命令:
composer require emiliopedrollo/laravel-secure-passwords
包简介
Provide useful ways to ensure strong passwords via validation
README 文档
README
This package provides useful ways to ensure strong passwords via validation in Laravel 6 applications.
The provided new validations:
- alphabetic characters
- numeric characters
- mixed case characters
- symbols
- common used passwords (provided by SplashData)
Documentation
Installation
Get the package
composer require emiliopedrollo/laravel-secure-passwords:"~0.2".
Usage
Now Laravel's native Validator is extended by those rules:
- has_uppercase
- has_lowercase
- has_both_cases
- has_digit
- has_letter
- has_symbol
- not_a_common_password
Example
You can apply these rules as described in the validation section on Laravel's website
Validator::make(['password' => 'trustno1'] 'password' => 'has_digit|has_letter|not_a_common_password' )->passes(); // returns false;
History
[Laravel 5]
[0.1]
- Initial release
License
This package is under the MIT license. See the complete license:
Reporting Issues or Feature Requests
Issues and feature requests are tracked on GitHub.
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-20