Xataface Switch User Module 0.1
Allow fast user switching for administrators of Xataface applications
Public Member Functions
actions_switch_user Class Reference

Public Member Functions

 handle ($params)
 response ($params)

Detailed Description

Switch User Action

Author:
Steve Hannah <shannah@sfu.ca> Created Oct. 12, 2010 Copyright (c) 2010, Faculty of Communication Art and Technology, Simon Fraser University All rights reserved.

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.


Member Function Documentation

handle ( params)

Definition at line 50 of file switch_user.php.

response ( params)

Definition at line 99 of file switch_user.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions