定制 nti/impersonation-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nti/impersonation-bundle

最新稳定版本:v1.1.3

Composer 安装命令:

composer require nti/impersonation-bundle

包简介

Symfony NTIImpersonationBundle

关键字:

README 文档

README

Overview

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.

Installation

  1. Install the bundle using composer:

    $ composer require ntidev/impersonation-bundle "dev-master"
    
  2. Add the bundle configuration to the AppKernel

    public function registerBundles()
    {
        $bundles = array(
            ...
            new NTI\ImpersonationBundle\NTIImpersonationBundle(),
            ...
        );
    }
    
  3. Setup the configuration in the config.yml

    # NTI
    nti_impersonation:
        redirect_route: 'deshblard'
        user_class: 'AppBundle\Entity\User\User'
        user_class_property: 'username'
        firewall: 'main'
    
  4. Update the database schema

    $ php app/console doctrine:schema:update
    

Requirements

  1. The entity that the bundle uses is currently hard coded to AppBundle\Entity\User\User and it uses the "username" property to find a valid user to impersonate.

Usage

  1. Generate an impersonation key

    $ php app/console nti:impersonation:generate-key [username]
    
  2. Copy the provided key and go to the url: /nti/impersonate/{key}

  3. You will be redirected to the configured route logged in as the user for which the key was generated.

统计信息

  • 总下载量: 1.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固