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.

Usage:
  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.
<?php
$this->widget(
    'Masked',
    array(
        '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('127.0.0.1', '::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
4 followers
487 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Auth
Developed by: YiiJeka
Created on: Apr 12, 2013
Last updated: 9 years ago

Downloads

show all

Related Extensions