Class app\models\User

Inheritanceapp\models\User » yii\base\Object
Implementsyii\web\IdentityInterface

Property Details

$accessToken public property
public $accessToken null
$authKey public property
public $authKey null
$id public property
public $id null
$password public property
public $password null
$username public property
public $username null

Method Details

findByUsername() public static method

Finds user by username

public static static|null findByUsername ( $username )
$username string
findIdentity() public static method

public static void findIdentity ( $id )
$id
findIdentityByAccessToken() public static method

public static void findIdentityByAccessToken ( $token, $type null )
$token
$type
getAuthKey() public method

public void getAuthKey ( )
getId() public method

public void getId ( )
validateAuthKey() public method

public void validateAuthKey ( $authKey )
$authKey
validatePassword() public method

Validates password

public boolean validatePassword ( $password )
$password string

Password to validate

return boolean

If password provided is valid for current user