guilhermednt/pathwell-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Separate actual validation from Symfony-specific code

    The "core" validation could become a separate lib.

统计信息

  • 总下载量: 7.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2016-04-01