Abstract Class yeesoft\models\UserIdentity

Inheritanceyeesoft\models\UserIdentity » yeesoft\db\ActiveRecord » yii\db\ActiveRecord
Implementsyii\web\IdentityInterface
Subclassesyeesoft\models\User, yeesoft\user\models\search\UserSearch

Parent class for User model

Method Details

findByConfirmationToken() public static method

Finds user by confirmation token

public static static|null|yeesoft\models\User findByConfirmationToken ( $token )
$token string

Confirmation token

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
findInactiveByConfirmationToken() public static method

Finds user by confirmation token

public static static|null|yeesoft\models\User findInactiveByConfirmationToken ( $token )
$token string

Confirmation token

generateAuthKey() public method

Generates "remember me" authentication key

public void generateAuthKey ( )
generateConfirmationToken() public method

Generates new confirmation token

public void generateConfirmationToken ( )
getAuthKey() public method

public void getAuthKey ( )
getId() public method

public void getId ( )
removeConfirmationToken() public method

Removes confirmation token

public void removeConfirmationToken ( )
setPassword() public method

Generates password hash from password and sets it to the model

public void setPassword ( $password )
$password string
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