Browse Source

:bug: isValidPassword 调用没加$this->

visuddhinanda 4 years ago
parent
commit
ba8ffffac2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/db/user.php

+ 1 - 1
app/db/user.php

@@ -254,7 +254,7 @@ class User extends Table
 		$isExist = $this->medoo->has($this->table,["username"=>$data["username"],"reset_password_token"=>$data["reset_password_token"]]);
 		$isExist = $this->medoo->has($this->table,["username"=>$data["username"],"reset_password_token"=>$data["reset_password_token"]]);
 		if($isExist){
 		if($isExist){
 			#reset password
 			#reset password
-			if(!isValidPassword($data["password"])){
+			if(!$this->isValidPassword($data["password"])){
 				echo json_encode($this->result, JSON_UNESCAPED_UNICODE);
 				echo json_encode($this->result, JSON_UNESCAPED_UNICODE);
 				return;
 				return;
 			}
 			}