class User (View source)

The User class provides all methods related to a user account.

Methods

static array
changePassword()

Change the password of the currently logged in user based on $_POST.

static string
get()

Return the currently logged in user.

static string
login()

Verify login information based on $_POST.

static boolean
logout()

Log out user.

Details

static array changePassword()

Change the password of the currently logged in user based on $_POST.

Return Value

array $output (error/success)

static string get()

Return the currently logged in user.

Return Value

string Username

static string login()

Verify login information based on $_POST.

Return Value

string Error message in case of an error.

static boolean logout()

Log out user.

Return Value

boolean true on success