Class app\models\User
Inheritance | app\models\User » yii\base\Object |
---|---|
Implements | yii\web\IdentityInterface |
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$accessToken | app\models\User | ||
$authKey | app\models\User | ||
$id | app\models\User | ||
$password | app\models\User | ||
$username | app\models\User |
Public Methods
Method | Description | Defined By |
---|---|---|
findByUsername() | Finds user by username | app\models\User |
findIdentity() | app\models\User | |
findIdentityByAccessToken() | app\models\User | |
getAuthKey() | app\models\User | |
getId() | app\models\User | |
validateAuthKey() | app\models\User | |
validatePassword() | Validates password | app\models\User |
Property Details
Method Details
Finds user by username
public static static|null findByUsername ( $username ) | ||
$username | string |
public static void findIdentity ( $id ) | ||
$id |
public static void findIdentityByAccessToken ( $token, $type = null ) | ||
$token | ||
$type |
public void getAuthKey ( ) |
public void getId ( ) |
public void validateAuthKey ( $authKey ) | ||
$authKey |
Validates password
public boolean validatePassword ( $password ) | ||
$password | string | Password to validate |
return | boolean | If password provided is valid for current user |
---|