dev-master
9999999-devSymfony NTIImpersonationBundle
MIT
The Requires
by Benjamin Vison
logbundle
v1.0.0
1.0.0.0Symfony2 Bundle to handle user impersonation
MIT
The Requires
by Benjamin Vison
 Wallogit.com
                    
                    2017 © Pedro Peláez
                         Wallogit.com
                    
                    2017 © Pedro Peláez
                    
                    
                    
                    
                
                
            
Symfony NTIImpersonationBundle
This bundle lets you change the login to another user without needing the users' password. This is useful when you have a list of users and someone complains that they in particular are having a specific issue. Using this bundle you could change your login to that of the user without asking for the password., (*1)
Install the bundle using composer:, (*2)
$ composer require ntidev/impersonation-bundle "dev-master"
Add the bundle configuration to the AppKernel, (*3)
public function registerBundles()
{
    $bundles = array(
        ...
        new NTI\ImpersonationBundle\NTIImpersonationBundle(),
        ...
    );
}
Setup the configuration in the config.yml, (*4)
# NTI
nti_impersonation:
    redirect_route: 'deshblard'
    user_class: 'AppBundle\Entity\User\User'
    user_class_property: 'username'
    firewall: 'main'
Update the database schema, (*5)
$ php app/console doctrine:schema:update
Generate an impersonation key, (*6)
$ php app/console nti:impersonation:generate-key [username]
Copy the provided key and go to the url: /nti/impersonate/{key}, (*7)
You will be redirected to the configured route logged in as the user for which the key was generated., (*8)
Symfony NTIImpersonationBundle
MIT
logbundle
Symfony2 Bundle to handle user impersonation
MIT