-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
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];
}
Metadata
Metadata
Assignees
Labels
No labels