diff --git a/web/application/controllers/login.php b/web/application/controllers/login.php index edb2c53..3b6ddea 100644 --- a/web/application/controllers/login.php +++ b/web/application/controllers/login.php @@ -2,7 +2,6 @@ use system\vendor\phpoauthlib2\providers\GoogleAuthProvider; use system\vendor\phpoauthlib2\OAuth; -use \vendor\DB\DB; use application\models\Users; class login extends base { @@ -22,7 +21,6 @@ class login extends base { if ($check === true) { $email = $authProvider->getEmail(); /** @var Users $user */ - //$user = DB::fetchObject("SELECT * FROM users WHERE email = ?", "users", [$email]); $users = Users::getByField("email", $email); if (count($users) == 0) { echo $this->accessDenied(); diff --git a/web/application/tmp/.gitignore b/web/application/tmp/.gitignore index 66ca35b..7019926 100644 --- a/web/application/tmp/.gitignore +++ b/web/application/tmp/.gitignore @@ -1 +1,2 @@ -*.php \ No newline at end of file +*.php +h2o* \ No newline at end of file