frontend\models\LoginForm::getUser PHP Method

getUser() public method

Finds user by [[mobile]]
public getUser ( ) : User | null
return common\models\User | null
    public function getUser()
    {
        if ($this->_user === null) {
            $this->_user = User::findByMobile($this->mobile);
        }
        return $this->_user;
    }