modX.getAuthenticatedUser

Skip to end of metadata
Go to start of metadata


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');

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.