Метод | Описание | |
---|---|---|
behaviors ( ) | ||
findByPasswordResetToken ( string $token ) : static | null | Finds user by password reset token | |
findByUsername ( string $username ) : static | null | Finds user by username | |
findIdentity ( $id ) | ||
findIdentityByAccessToken ( $token, $type = null ) | ||
generateAuthKey ( ) | Generates "remember me" authentication key | |
generatePasswordResetToken ( ) | Generates new password reset token | |
getAuthKey ( ) | ||
getId ( ) | ||
isPasswordResetTokenValid ( string $token ) : boolean | Finds out if password reset token is valid | |
removePasswordResetToken ( ) | Removes password reset token | |
rules ( ) | ||
setPassword ( string $password ) | Generates password hash from password and sets it to the model | |
tableName ( ) | ||
validateAuthKey ( $authKey ) | ||
validatePassword ( string $password ) : boolean | Validates password |
public static findByPasswordResetToken ( string $token ) : static | null | ||
$token | string | password reset token |
Результат | static | null |
public static findByUsername ( string $username ) : static | null | ||
$username | string | |
Результат | static | null |
public static findIdentityByAccessToken ( $token, $type = null ) |
public generateAuthKey ( ) |
public generatePasswordResetToken ( ) |
public static isPasswordResetTokenValid ( string $token ) : boolean | ||
$token | string | password reset token |
Результат | boolean |
public removePasswordResetToken ( ) |
public setPassword ( string $password ) | ||
$password | string |
public validatePassword ( string $password ) : boolean | ||
$password | string | password to validate |
Результат | boolean | if password provided is valid for current user |