Returns an array with user data from the Login table.
Returns false if the user was not found.
Syntax
Security::getUserData($username)
Arguments
$username
the username.Return value
Array with user data from the Login table.
Returns false if the user was not found.
Example
This example shows how to output the current user data:
print_r (Security::getUserData($username));
Sample output
Array
(
[ID] => 2
[username] => admin_user
[password] => admin
[email] => no
[fullname] => John Smith
[active] => 1
)
See also:
•Security API: currentUserData
•Security screen: Security settings