guilhermednt/pathwell-bundle
最新稳定版本:v0.2.0
Composer 安装命令:
composer require guilhermednt/pathwell-bundle
包简介
Symfony Bundle implementing PathWell Topology password policy
README 文档
README
Symfony Bundle implementing PathWell Topology password policy
Installing a custom Topology Blacklist
To use your own custom blacklist just implement PathWellTopologiesInterface
and override the pathwell.topology.class parameter. Example:
<?php // src/AppBundle/Security/MyPathWellTopologies.php namespace AppBundle\Security; use Donato\PathWellBundle\Validator\PathWellTopologiesInterface; class MyPathWellTopologies implements PathWellTopologiesInterface { public function getBlacklist() { return [ 'ssssssss', // blacklists a password that contains only 'special' characters 'lddddddd', // blacklists a password that consists of a lowercase letter followed by 7 numbers ]; } }
# config.yml or parameters.yml parameters: pathwell.topology.class: AppBundle\Security\MyPathWellTopologies
TODO
-
Separate actual validation from Symfony-specific code
The "core" validation could become a separate lib.
统计信息
- 总下载量: 7.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-04-01