This commit is contained in:
rsgrinko committed 2022-04-19 00:17:24 +03:00
1 parent d672f3772b
commit a320d2bc21
1 file changed
+1 -2
+1 -2
View File
@@ -13,14 +13,13 @@
//$userId = User::registration('test', '12345', 'support@it-stories.ru', 'user', 'Тестировщик', 'http://samag.ru/uploads/5222447.png');
/*$user = new User($userId);*/
$userId = User::getCurrentUserId();
try {
$user = new User($userId);
User::authorize((int)$userId);
echo $userId;
echo 'Current user id: ' . $userId . '<br>';
} catch (CoreException $e) {
echo $e->showTrace();
}