From 732368e21c881b01501ed5ea01e9a52d9f140120 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Wed, 22 Dec 2021 14:53:11 +0300 Subject: [PATCH] tokens --- inc/lib/CUser.class.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/inc/lib/CUser.class.php b/inc/lib/CUser.class.php index 9e3f9c9..a935381 100644 --- a/inc/lib/CUser.class.php +++ b/inc/lib/CUser.class.php @@ -94,6 +94,21 @@ class CUser { } } + /** + * Создание пользовательского токена + */ + /*public static function createUserToken($userId):string { + + + self::$DB->update(self::$table, array('id' => $result['id']), array('last_active' => time())); + + if($result) { + return $result['token']; + } else { + return ''; + } + }*/ + /** * Проверка пользователя на онлайн *