mdespeuilles/drupalpasswordencoderbundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Drupal 7 and 8 password encoder Bundle

1.0.1 2017-04-08 12:23 UTC

This package is not auto-updated.

Last update: 2023-11-25 23:02:25 UTC


README

This bundle provide just a Drupal password encoder for Symfony 2/3. It will be very usefull if you want migrate an old Drupal 7 or 8 site to Symfony and keep the users password.

Installation

To install DrupalPasswordEncoderBundle with Composer just type in your terminal:

php composer.phar require mdespeuilles/drupalpasswordencoderbundle

Now update your AppKernel.php file, and register the new bundle:

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Mdespeuilles\DrupalPasswordEncoderBundle\MdespeuillesDrupalPasswordEncoderBundle(),
    // ...
);

Usage

In your security.yml change the default encoders :

security:
    encoders:
        AppBundle\Entity\User:
            id: mdespeuilles_drupal_password_encoder
            
    ...