• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/apauth/auth.php
  • Класс: BitrixRestAPAuthAuth
  • Вызов: Auth::checkOldPassword
static function checkOldPassword($userId, $password)
{
	$appPassword = ApplicationPasswordTable::findPassword($userId, $password);
	if($appPassword !== false)
	{
		if($appPassword["APPLICATION_ID"] === Application::ID)
		{
			$appManager = ApplicationManager::getInstance();
			if($appManager->checkScope($appPassword["APPLICATION_ID"]) === true)
			{
				return static::convertOldPassword($appPassword, $password);
			}
		}
	}

	return false;
}