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不正确");