emiliopedrollo/laravel-secure-passwords

通过验证提供确保强大密码的有用方式

v0.2 2017-12-21 11:29 UTC

README

Build Status Latest Stable Version Total Downloads License Code Climate maintainability

本包为Laravel 6应用程序提供通过验证确保强大密码的有用方式。

提供的新验证

  • 字母字符
  • 数字字符
  • 大小写混合字符
  • 符号
  • 常用密码(由SplashData提供)

文档

安装

获取包

composer require emiliopedrollo/laravel-secure-passwords:"~0.2".

用法

现在Laravel的原生Validator通过以下规则扩展

  • has_uppercase
  • has_lowercase
  • has_both_cases
  • has_digit
  • has_letter
  • has_symbol
  • not_a_common_password

示例

您可以在Laravel网站上的验证部分中按照描述应用这些规则

Validator::make(['password' => 'trustno1']
    'password' => 'has_digit|has_letter|not_a_common_password'
)->passes();   // returns false;

历史

[Laravel 5]

[0.1]

  • 首次发布

许可证

本包受MIT许可证的约束。查看完整的许可证

报告问题或功能请求

问题和功能请求在GitHub上跟踪。