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',