From eeea5dfd2aa4dfd23345835819429f108cc4cd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=86=89=E6=8C=BD=E6=B8=85=E9=A3=8E?= <1550969027@qq.com> Date: Thu, 23 Mar 2023 13:49:49 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E7=99=BB=E5=BD=95=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90=E5=92=8C=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/validate/LoginValidate.php | 2 +- config/thinkcache.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/validate/LoginValidate.php b/app/admin/validate/LoginValidate.php index fff794d..6cbba12 100644 --- a/app/admin/validate/LoginValidate.php +++ b/app/admin/validate/LoginValidate.php @@ -72,7 +72,7 @@ class LoginValidate extends BaseValidate $adminAccountSafeCache->record(); return '账号不存在'; } - var_dump($adminInfo['password']); + if (!password_verify($password,$adminInfo['password'])) { $adminAccountSafeCache->record(); return '密码错误'; diff --git a/config/thinkcache.php b/config/thinkcache.php index 487f18f..09a530a 100644 --- a/config/thinkcache.php +++ b/config/thinkcache.php @@ -1,6 +1,6 @@ 'file', + 'default' => 'redis', 'stores' => [ 'file' => [ 'type' => 'File',