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