You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
password_verify(): Passing null to parameter #2 ($hash) of type string is deprecated
是否为bug
为什么session.php配置store为redis,序列化参数也改为'serialize'=>['json_encode', 'json_decode']之后,居然无法使用验证函数,请问这算是BUG吗, 报错:password_verify(): Passing null to parameter #2 ($hash) of type string is deprecated
password_verify(): Passing null to parameter #2 ($hash) of type string is deprecated
是否为bug
为什么session.php配置store为redis,序列化参数也改为'serialize'=>['json_encode', 'json_decode']之后,居然无法使用验证函数,请问这算是BUG吗, 报错:password_verify(): Passing null to parameter #2 ($hash) of type string is deprecated
// /vendor/topthink/think-captcha/src/Captcha.php
将 $key = $this->session->get('captcha.key');
改成
$arr = $this->session->get('captcha');
$key = $arr->key;
就可以了
修改了一下代码,麻烦大佬修复一下。
文件: /vendor/topthink/think-helper/src/helper/Arr.php
方法: public static function get($array, $key, $default = null)
修改:
if (is_object($array[$segment])) {
$array = (array) $array[$segment];
} else {
$array = $array[$segment];
}
The text was updated successfully, but these errors were encountered: