USER Methods

login()

Login user into the system or (if used without parameters) check if current user is logged in. This function only returns the status of actual users and will return FALSE if superadmin is logged in.

int login([ string user [, string pass ]])

Return

User-ID of current user or error-code

Parameter
Description
usernickname or email-address of user to be logged in. If function will return login-status i.e. user-id of current user if used without any parameter.
passUser's password

Check User Login

$USER->login()
RETURN: 0

LOGIN USER

$USER->login("test", "user")
RETURN: 3

Check User Login

$USER->login()
RETURN: 3

Alternate Call

$EXEC->user->login()
RETURN: 3