lightning-swap-user Change the user in a single click

lightning Swap User

Progect on GitHub

Russian version readme

Change the user in a single click, for Yii Framework.

  1. Copy the repository.
  2. Unzip to protected folder.
  3. In layout/main.php or on dashboard admin use code, which is implemented on.
  4. Pass authentication.
        'modelNameUser' => 'User', //Name User model,
        'fieldNameUser' => 'username', //Name field login
        'fieldIdUser' => 'id', //Name field ID
        'ipWhiteList' => array(), // List of ip addresses that are available widget.
        'typeView' => 'dropDown' // Type of widget - 'autoComplete' or 'dropDown' 
// ipWhiteList - default array('', '::1/128') - localhost. These ip addresses will be added to your.

or one line

<?php $this->widget('Masked'); ?>

Note: Restrict access to this widget only necessary users.

UPD: v0.3 Add filter access by IP adress and theme view widget.

Progect on GitHub

3 1
Yii Version: 1.1
License: BSD-2-Clause
Category: Auth
Developed by: YiiJeka
Created on: Apr 12, 2013
Last updated: 9 years ago


show all

Related Extensions