Метод findUserByToken

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 73–96
~/bitrix/modulesim/lib/V2/Guest/Auth/AuthenticationService.php

Исходный код

PHP
public

Сигнатура метода

public function findUserByToken(Token $token): ?int

Возвращает: ?int

Описание

ACTIVE='N' guests are treated as unknown — that's how kick and inactivity cleanup invalidate tokens without deleting the user row. Memoized per request, misses included: a single hit of the guest page asks the same token twice, and nothing within a request creates or deactivates the guest it names.

Параметры

1
Имя Тип По умолчанию Флаги
$token Token -
-