Class app\modules\main\models\LoginForm
| Inheritance | app\modules\main\models\LoginForm » yii\base\Model |
|---|
Class LoginForm Модель формы логина
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $password | string | пароль | app\modules\main\models\LoginForm |
| $rememberMe | bool | запомнить меня | app\modules\main\models\LoginForm |
| $username | string | имя пользователя | app\modules\main\models\LoginForm |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| attributeLabels() | app\modules\main\models\LoginForm | |
| getUser() | Finds user by $username | app\modules\main\models\LoginForm |
| login() | Logs in a user using the provided username and password. | app\modules\main\models\LoginForm |
| rules() | app\modules\main\models\LoginForm | |
| validatePassword() | Validates the password. | app\modules\main\models\LoginForm |
Property Details
пароль
запомнить меня
имя пользователя
Method Details
| void attributeLabels( ) |
Finds user by $username
| app\modules\main\models\User|null getUser( ) |
Logs in a user using the provided username and password.
| boolean login( ) | ||
| return | boolean | Whether the user is logged in successfully |
|---|---|---|
| void rules( ) |
Validates the password.
This method serves as the inline validation for password.
| void validatePassword( ) |