modX::getAuthenticatedUser
Gets the user authenticated in the specified context.
Syntax
API Doc: http://api.modxcms.com/modx/modX.html#getAuthenticatedUser
unknown getAuthenticatedUser ([string $contextKey = ''])
Example
Get the authenticated user for the 'sports' context:
$user = $modx->getAuthenticatedUser('sports');