modX.getAuthenticatedUser
Last updated Dec 21st, 2019 | Page history | Improve this page | Report an issue
modX::getAuthenticatedUser¶
Gets the user authenticated in the specified context.
Syntax¶
API Doc: modX::getAuthenticatedUser()
unknown getAuthenticatedUser ([string $contextKey = ''])
Example¶
Get the authenticated user for the 'sports' context:
$user = $modx->getAuthenticatedUser('sports');