Skip to content

Commit

Permalink
v2.9.12
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Oct 14, 2021
1 parent 7f0c783 commit 7e6b547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -4,7 +4,7 @@
"description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
"keywords": ["showdoc","documents","Api"],
"homepage": "https://github.com/star7th/showdoc",
"version":"v2.9.11",
"version":"v2.9.12",
"license": "Apache-2.0",
"authors": [
{
Expand Down
Expand Up @@ -19,7 +19,7 @@ public function bySecretKey(){
$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){
if( !($token === $new_token) ){
$this->sendError(10101,"token不正确");
return ;
}
Expand Down

0 comments on commit 7e6b547

Please sign in to comment.