Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

mdespeuilles/DrupalPasswordEncoderBundle

Repository files navigation

DrupalPasswordEncoderBundle

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
            
    ...

About

This bundle provide just a Drupal password encoder for Symfony 2/3

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages