Jump to main content Jump to doc navigation

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

See Also