ezuser
Summary
Contains information about a user.
Persistent
Yes.
Attributes
| Attribute | Type | Description |
|---|---|---|
| contentobject_id | string | The ID number of the object that represents the user. |
| login | string | The username of the user. |
| string | The E-mail address of the user (for example "[email protected]"). | |
| password_hash | string | The encrypted version of the user's password. |
| password_hash_type | string | The type of encryption that was used to obfuscate the user's password. |
| contentobject | object | The actual object (as ezcontentobject) that represents the user. |
| groups | array | The object ID numbers of the user groups that the user is a member of. |
| has_stored_login | boolean | Returns TRUE if the user has a non-empty username stored in the database; otherwise FALSE will be returned. |
| original_password | string |
The password input by the user from the last page (from "/user/register" or "/content/edit"). It is only used for validation of the password. It will be FALSE if empty input was provided. |
| original_password_confirm | string | The confirmation password for the "original_password" attribute (FALSE if empty). |
| roles | array | The roles (as ezrole objects) that are assigned to the user. |
| role_id_list | array | The ID numbers of the roles that are assigned to the user. |
| is_logged_in | boolean | Returns TRUE if the user is logged in, FALSE otherwise. |
| is_enabled | boolean | Returns TRUE if the user is enabled, FALSE otherwise. |
Contributors
- Balazs Halasy Updated
- vytis Commenter
- Anette Rekdal Commenter
Comments (2 historical)
Written by readers of the earlier documentation sites, kept as they were.
is anywhere stored las login date?
vytis ·
is any way to get last login date, ip and etc?
Re: is anywhere stored las login date?
Anette Rekdal ·
You can get the IP address by making an extension and use the PHP-function below like this:
function getIpAddress()
{
if (isset($_SERVER['REMOTE_ADDR'])) {
$extensionURL .= $_SERVER['REMOTE_ADDR'];
}
$result = array( );
$result['ip_address'] =& $extensionURL;
return array( 'result' => $result );
}