Class yeesoft\auth\models\forms\LoginForm

Inheritanceyeesoft\auth\models\forms\LoginForm » yii\base\Model

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() yeesoft\auth\models\forms\LoginForm
getUser() Finds user by $username yeesoft\auth\models\forms\LoginForm
login() Logs in a user using the provided username and password. yeesoft\auth\models\forms\LoginForm
rules() yeesoft\auth\models\forms\LoginForm
validateIP() Check if user is binded to IP and compare it with his actual IP yeesoft\auth\models\forms\LoginForm
validatePassword() Validates the password. yeesoft\auth\models\forms\LoginForm

Property Details

$password public property
public $password null
$rememberMe public property
public $rememberMe false
$username public property
public $username null

Method Details

attributeLabels() public method

public void attributeLabels ( )
getUser() public method

Finds user by $username

public yeesoft\models\User|null getUser ( )
login() public method

Logs in a user using the provided username and password.

public boolean login ( )
return boolean

Whether the user is logged in successfully

rules() public method

public void rules ( )
validateIP() public method

Check if user is binded to IP and compare it with his actual IP

public void validateIP ( )
validatePassword() public method

Validates the password.

This method serves as the inline validation for password.

public void validatePassword ( )