Skip to content

Commit 7e6b547

Browse files
committed
v2.9.12
1 parent 7f0c783 commit 7e6b547

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
55
"keywords": ["showdoc","documents","Api"],
66
"homepage": "https://github.com/star7th/showdoc",
7-
"version":"v2.9.11",
7+
"version":"v2.9.12",
88
"license": "Apache-2.0",
99
"authors": [
1010
{

server/Application/Api/Controller/ExtLoginController.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function bySecretKey(){
1919
$login_secret_key = D("Options")->get("login_secret_key") ;
2020
if(!$login_secret_key) return false ;
2121
$new_token = md5($username.$login_secret_key.$time);
22-
if($token != $new_token){
22+
if( !($token === $new_token) ){
2323
$this->sendError(10101,"token不正确");
2424
return ;
2525
}

0 commit comments

Comments
 (0)