Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
zoomuser.php
1<?php
2
4
7
8class ZoomUser extends BaseReceiver
9{
10 public function deauthorizeAction(string $socServLogin, array $payload): void
11 {
12 $result = UserTable::getList([
13 'select' => ['ID', 'USER_ID'],
14 'filter' => [
15 '=LOGIN' => $socServLogin,
16 '=EXTERNAL_AUTH_ID' => 'zoom',
17 ]
18 ]);
19
20 while ($user = $result->fetch())
21 {
22 $deleteResult = UserTable::delete($user['ID']);
23
24 //clean cache to update zoom connect page
25 $cacheId = 'zoom' . '|' . $user['USER_ID'];
26 $cache = \Bitrix\Main\Data\Cache::createInstance();
27 $cache->clean($cacheId, \CZoomInterface::CACHE_DIR_CONNECT_INFO);
28 }
29 }
30}
deauthorizeAction(string $socServLogin, array $payload)
Definition zoomuser.php:10