A Symfony bundle for authentication using composite password
- Composite password support for form authentication
PHPMentorsCompositePasswordAuthenticationBundle
can be installed using Composer.
First, add the dependency to phpmentors/composite-password-authentication-bundle
into your composer.json
file as the following:
Stable version:
composer require phpmentors/composite-password-authentication-bundle "1.0.*"
Development version:
composer require phpmentors/composite-password-authentication-bundle "~1.1@dev"
Second, add PHPMentorsCompositePasswordAuthenticationBundle
into your bundles to register in AppKernel::registerBundles()
as the following:
...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new PHPMentors\CompositePasswordAuthenticationBundle\PHPMentorsCompositePasswordAuthenticationBundle(),
);
...
app/config/security.yml:
security:
# ...
firewalls:
secured_area:
form_login_composite_password:
... # Same configuration as `form_login`
If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on Issues.
Copyright (c) 2016 KUBO Atsuhiro, All rights reserved.