• Модуль: xmpp
  • Путь к файлу: ~/bitrix/modules/xmpp/classes/client.php
  • Класс: CXMPPClient
  • Вызов: CXMPPClient::_Authenticate
public function _Authenticate($id, $login, $jid, $provider = "", $resource = "")
{
	$id = intval($id);

	$this->authenticated = false;

	if ($id <= 0 || $login == '' || $jid == '')
		return false;

	$this->id = $id;
	$this->login = $login;
	$this->provider = $provider;
	$this->jid = mb_strtolower($jid);
	$this->resource = $resource;

	$server = CXMPPServer::GetServer();
	$server->_IndexClient($this->jid, $this->xmppId, $this->GetClientDomain());

	$this->authenticated = true;

	CXMPPUtility::Show("Authenticate ".$this->jid." (".$this->xmppId.")", 5);
	$this->ChangeWorkPresence("Authenticate", "");
	CXMPPClient::SetLastActivityDate($this->id, time(), true);

	return true;
}