Class dektrium\user\models\LoginForm
Inheritance | dektrium\user\models\LoginForm » yii\base\Model |
---|
LoginForm get user's login and password, validates them and logs the user in. If user has been blocked, it adds an error to login form.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$login | string | User's email or username | dektrium\user\models\LoginForm |
$password | string | User's plain password | dektrium\user\models\LoginForm |
$rememberMe | string | Whether to remember the user | dektrium\user\models\LoginForm |
Protected Properties
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | dektrium\user\models\LoginForm | |
attributeLabels() | dektrium\user\models\LoginForm | |
beforeValidate() | dektrium\user\models\LoginForm | |
formName() | dektrium\user\models\LoginForm | |
login() | Validates form and logs the user in. | dektrium\user\models\LoginForm |
rules() | dektrium\user\models\LoginForm |
Property Details
User's email or username
User's plain password
Whether to remember the user
Method Details
public void __construct ( dektrium\user\Finder $finder, $config = [] ) | ||
$finder | dektrium\user\Finder | |
$config | array |
public void attributeLabels ( ) |
public void beforeValidate ( ) |
public void formName ( ) |
Validates form and logs the user in.
public bool login ( ) | ||
return | bool | Whether the user is logged in successfully |
---|
public void rules ( ) |