Public Member Functions | |
authenticate () | |
getId () |
Public Attributes | |
$firstname | |
$lastname | |
$gender | |
$personalisation | |
const | ERROR_AUTH_FIELD_INVALID = 3 |
const | ERROR_STATUS_NOTACTIV = 4 |
const | ERROR_STATUS_BAN = 5 |
UserIdentity represents the data needed to identity a user. It contains the authentication method that checks if the provided data can identity the user.
Definition at line 8 of file UserIdentity.php.
UserIdentity::authenticate | ( | ) |
Authenticates a user. The example implementation makes sure if the username and password are both 'demo'. In practical applications, this should be changed to authenticate against some persistent user identity storage (e.g. database).
Definition at line 39 of file UserIdentity.php.
References PersonalisationAttribute\flatListForUser(), and User\model().
UserIdentity::getId | ( | ) |
Definition at line 76 of file UserIdentity.php.