Please enable JavaScript to view this site.

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

Security API: getUserData

Scroll Prev Next More

 

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:

 

MVCFunctions.print_r(Security.getUserData(username));

Sample output

{"id":1,"username":"admin","password":"admin","email":"admin@test.com"}

See also:

Security API: currentUserData

Security screen: Security settings

About Security API