An open API service indexing awesome lists of open source software.

https://github.com/githubjeka/lightningswapuser

Change the user in a single click, for Yii 1.x.
https://github.com/githubjeka/lightningswapuser

Last synced: 9 months ago
JSON representation

Change the user in a single click, for Yii 1.x.

Awesome Lists containing this project

README

          

lightning Swap User
=================
[Russian version readme](https://github.com/githubjeka/lightningSwapUser/blob/master/Readme_rus.md)

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

###Install:

1. Copy the repository.
2. Unzip to protected folder.
3. In layout/main.php or on dashboard admin use this code

```php
widget(
'Masked',
array(
'modelNameUser' => 'User', //Name User model, for example may be - \users\models\User
'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' (CJuiAutoComplete) or 'dropDown' (dropDownList)
)
);
?>
```
ipWhiteList - default array('127.0.0.1', '::1/128') - localhost. These ip addresses will be added to your.

or one line this code:
```php
widget('Masked'); ?>
```

Note: Restrict access to this widget only necessary users.