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(); - } -}