PHP Class skeeks\cms\models\forms\LoginFormUsernameOrEmail

Inheritance: extends yii\base\Model
Show file Open project: skeeks-cms/cms

Public Properties

Property Type Description
$identifier
$password
$rememberMe

Public Methods

Method Description
attributeLabels ( ) : array
getUser ( ) : User | null Finds user by [[username]]
login ( ) : boolean Logs in a user using the provided username and password.
rules ( )
validatePassword ( string $attribute, array $params ) Validates the password.

Method Details

attributeLabels() public method

public attributeLabels ( ) : array
return array

getUser() public method

Finds user by [[username]]
public getUser ( ) : User | null
return skeeks\cms\models\User | null

login() public method

Logs in a user using the provided username and password.
public login ( ) : boolean
return boolean whether the user is logged in successfully

rules() public method

public rules ( )

validatePassword() public method

This method serves as the inline validation for password.
public validatePassword ( string $attribute, array $params )
$attribute string the attribute currently being validated
$params array the additional name-value pairs given in the rule

Property Details

$identifier public property

public $identifier

$password public property

public $password

$rememberMe public property

public $rememberMe