guilhermednt/pathwell-bundle

Symfony Bundle implementing PathWell Topology password policy

Maintainers

Package info

github.com/guilhermednt/pathwell-bundle

Type:symfony-bundle

pkg:composer/guilhermednt/pathwell-bundle

Statistics

Installs: 7 480

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.0 2022-06-27 07:02 UTC

This package is auto-updated.

Last update: 2026-02-27 15:10:49 UTC


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.