Skip to content

Commit

Permalink
v2.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Aug 3, 2021
1 parent 5d9b068 commit 034328a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.6",
"version":"v2.9.7",
"license": "Apache-2.0",
"authors": [
{
Expand Down
Expand Up @@ -166,7 +166,7 @@ public function getLoginSecretKey(){
$this->checkAdmin();
$login_secret_key = D("Options")->get("login_secret_key") ;
if(!$login_secret_key){
$login_secret_key = md5("rgrsfsrfsrf".time().rand());
$login_secret_key = md5("rgrsfsrfsrf".time().rand(1,9000000000000000).uniqid());
D("Options")->set("login_secret_key",$login_secret_key) ;
}
$this->sendResult(array("login_secret_key"=>$login_secret_key));
Expand All @@ -176,7 +176,7 @@ public function getLoginSecretKey(){
public function resetLoginSecretKey(){
$login_user = $this->checkLogin();
$this->checkAdmin();
$login_secret_key = md5("rgrsfsrfsrf".time().rand());
$login_secret_key = md5("rgrsfsrfsrf".time().rand(1,9000000000000000).uniqid());
D("Options")->set("login_secret_key",$login_secret_key) ;
$this->sendResult(array("login_secret_key"=>$login_secret_key));

Expand Down

0 comments on commit 034328a

Please sign in to comment.