From 19a0a0453061ac6b7cb91da8b686c0bb3f2085d9 Mon Sep 17 00:00:00 2001 From: star7th Date: Wed, 13 Oct 2021 18:58:33 +0800 Subject: [PATCH] Update ExtLoginController.class.php --- server/Application/Api/Controller/ExtLoginController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/Application/Api/Controller/ExtLoginController.class.php b/server/Application/Api/Controller/ExtLoginController.class.php index 1269e1b1d..dbf217c9d 100644 --- a/server/Application/Api/Controller/ExtLoginController.class.php +++ b/server/Application/Api/Controller/ExtLoginController.class.php @@ -17,7 +17,7 @@ public function bySecretKey(){ return ; } $login_secret_key = D("Options")->get("login_secret_key") ; - + if(!$login_secret_key) return false ; $new_token = md5($username.$login_secret_key.$time); if($token != $new_token){ $this->sendError(10101,"token不正确");