Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Security API > Methods

Security API: currentUserData

Scroll Prev Next More

 

Returns an array with the current user data from the Login table.

Syntax

Security.currentUserData()

Arguments

No arguments.

Return value

Returns an array with the current user data from the Login table.

Example

This example shows how to output the current user data:

 

XVar userData = Security.currentUserData();
MVCFunctions.print_r(userData);

Sample output

{"ID":1,"username":"admin","password":"admin","email":"no","fullname":"John","groupid":null}

See also:

Security API: getUserData

Security screen: Security settings

About Security API