Class CUserIdentity
CUserIdentity is a base class for representing identities that are authenticated based on a username and a password.
Derived classes should implement CUserIdentity::authenticate()
with the actual
authentication scheme (e.g. checking username and password against a DB
table).
By default, CUserIdentity assumes the CUserIdentity::$username
is a unique identifier
and thus use it as the id ID of the identity.
- CComponent
- CBaseUserIdentity implements IUserIdentity
- CUserIdentity
Direct known subclasses
UserIdentityCopyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/auth/CUserIdentity.php
public
|
|
public
boolean
|
#
authenticate( )
Authenticates a user based on |
public
string
|
#
getId( )
Returns the unique identifier for the identity. The default implementation
simply returns |
public
string
|
#
getName( )
Returns the display name for the identity. The default implementation simply
returns |
clearState(),
getIsAuthenticated(),
getPersistentStates(),
getState(),
setPersistentStates(),
setState()
|
ERROR_NONE,
ERROR_PASSWORD_INVALID,
ERROR_UNKNOWN_IDENTITY,
ERROR_USERNAME_INVALID
|
public
string
|
$username |
|
#
username |
public
string
|
$password |
|
#
password |
$errorCode,
$errorMessage
|
public
string
|
$id |
#
The unique identifier for the identity. |
public
string
|
$name |
#
The display name for the identity. |
$isAuthenticated,
$persistentStates
|