示例#1
0
文件: Login.php 项目: vfokov/tims2
 /**
  * Finds user by [[username]]
  * @return UserIdentity|null
  */
 public function getUser()
 {
     if ($this->_user === null) {
         $this->_user = UserIdentity::findByUsername($this->username);
     }
     return $this->_user;
 }