![]() |
Xataface Switch User Module 0.1
Allow fast user switching for administrators of Xataface applications
|
Public Member Functions | |
handle ($params) | |
response ($params) |
Switch User Action
Synopsis: ==========
A switch user action that allows administrators to log in under other users' accounts. This action uses a REST api as follows:
POST parameters: -table : This should be 'users' -action : This should be 'switch_user' --restore : 0 or 1. If present, then this action will restore to the original user account. --username : The username to switch to. This is not applicable if --restore parameter is present.
Return value: JSON object with following keys: code : 200 for success, 500 for failure. msg : Error or success message string. username : The effective username that the user is logged in as after this function's completion.
Definition at line 49 of file switch_user.php.
handle | ( | $ | params | ) |
Definition at line 50 of file switch_user.php.
response | ( | $ | params | ) |
Definition at line 99 of file switch_user.php.