From 61997c5a13fee16682fbb2404d12b438a5ddfb75 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 3 Jul 2022 21:26:25 +0000 Subject: [PATCH] Removed unused authentication methods. --- .gitignore | 1 + src/Auth/OAuthAuth.php | 10 ---------- src/Auth/SockChatAuth.php | 28 ---------------------------- 3 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 src/Auth/OAuthAuth.php delete mode 100644 src/Auth/SockChatAuth.php diff --git a/.gitignore b/.gitignore index 74737cf..de29232 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ public/data/* public/thumb/* config.ini +/.debug diff --git a/src/Auth/OAuthAuth.php b/src/Auth/OAuthAuth.php deleted file mode 100644 index 1cbd39e..0000000 --- a/src/Auth/OAuthAuth.php +++ /dev/null @@ -1,10 +0,0 @@ -getDatabase()->prepare(' - SELECT `user_id` - FROM `msz_user_chat_tokens` - WHERE `user_id` = :user - AND `token_string` = :token - AND `token_created` > NOW() - INTERVAL 1 WEEK - '); - $getUserId->bindValue('user', $userId); - $getUserId->bindValue('token', $chatToken); - $getUserId->execute(); - - return (int)$getUserId->fetchColumn(); - } -}