diff --git a/common/models/LoginForm.php b/common/models/LoginForm.php index b16e2a4..1508cb3 100755 --- a/common/models/LoginForm.php +++ b/common/models/LoginForm.php @@ -4,7 +4,7 @@ use artbox\order\models\Customer; use Yii; use yii\base\Model; - + /** * Login form */ @@ -14,9 +14,9 @@ public $password; public $rememberMe = true; public $returnUrl; - + private $_user; - + /** * @inheritdoc */ @@ -49,7 +49,7 @@ ], ]; } - + /** * Validates the password. * This method serves as the inline validation for password. @@ -66,7 +66,7 @@ } } } - + /** * Logs in a user using the provided username and password. * @@ -80,7 +80,7 @@ return false; } } - + /** * Finds user by [[username]] * @@ -91,16 +91,16 @@ if ($this->_user === null) { $this->_user = Customer::findByUsername($this->username); } - + return $this->_user; } - + public function attributeLabels() { return [ - 'username' => 'Логин', - 'password' => 'Пароль', - 'rememberMe' => 'Запомнить', + 'username' => 'Логин', + 'password' => 'Пароль', + 'rememberMe' => 'Запомнить', ]; } } -- libgit2 0.21.4