Skip to content

Commit

Permalink
compatible / 兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Jan 1, 2022
1 parent 975a6da commit e8c7c4b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -188,7 +188,7 @@ public function getLoginSecretKey(){
$this->checkAdmin();
$login_secret_key = D("Options")->get("login_secret_key") ;
if(!$login_secret_key){
$login_secret_key = bin2hex( random_bytes( 16 ) );
$login_secret_key = get_rand_str();
D("Options")->set("login_secret_key",$login_secret_key) ;
}
$this->sendResult(array("login_secret_key"=>$login_secret_key));
Expand All @@ -198,7 +198,7 @@ public function getLoginSecretKey(){
public function resetLoginSecretKey(){
$login_user = $this->checkLogin();
$this->checkAdmin();
$login_secret_key = bin2hex( random_bytes( 16 ) );
$login_secret_key = get_rand_str();
D("Options")->set("login_secret_key",$login_secret_key) ;
$this->sendResult(array("login_secret_key"=>$login_secret_key));

Expand Down

0 comments on commit e8c7c4b

Please sign in to comment.