if (!empty($this->settings['username'])) { if (!$this->checkUsername($username, $this->settings['username'])) { $this->wrong_password = true; //TODO: need to remove. don't use $this->setError('username_access', 'You have no access to login this site'); return; } }