-
-
Set configuration options and users.
-
Gets the currently logged in user from the session. Returns NULL if no user is currently logged in.
-
Check if user has the role.
-
Logs a user in.
-
public function setUsers(variable $users)
-
public function __construct(array $options)
Set configuration options and users. -
public function getUser(variable $defaultValue)
Gets the currently logged in user from the session. Returns NULL if no user is currently logged in. -
public function hasRole(variable $user, string $role)
Check if user has the role. -
public function login(variable $username, string $password, bool $remember, bool $force)
Logs a user in.