Commit 9c88815c429e17f23b6160e35b89f5a84eb5e7d9

Authored by Yarik
1 parent b4cb70e0

Customer Login

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
common/models/LoginForm.php
1 <?php 1 <?php
2 namespace common\models; 2 namespace common\models;
3 -  
4 - use artbox\core\models\User; 3 +
  4 + use artbox\order\models\Customer;
5 use Yii; 5 use Yii;
6 use yii\base\Model; 6 use yii\base\Model;
7 7
@@ -84,12 +84,12 @@ @@ -84,12 +84,12 @@
84 /** 84 /**
85 * Finds user by [[username]] 85 * Finds user by [[username]]
86 * 86 *
87 - * @return User|null 87 + * @return Customer|null
88 */ 88 */
89 protected function getUser() 89 protected function getUser()
90 { 90 {
91 if ($this->_user === null) { 91 if ($this->_user === null) {
92 - $this->_user = User::findByUsername($this->username); 92 + $this->_user = Customer::findByUsername($this->username);
93 } 93 }
94 94
95 return $this->_user; 95 return $this->_user;