php - 验证码问题
问题描述
我已经设置了一个Piwallet,它需要一个 Recapcha v2 密钥,但是当我在提供正确的密钥后尝试登录时,我在调试屏幕中得到了这个,它显示:
[:error] [pid 7405] [client 181.123.31.124:59758] PHP Notice: Undefined index: g-recaptcha-response in /var/www/html/index.php on line 312
那一行写着:
$response = $reCaptcha->verifyResponse($_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"]);
解决方案
推荐阅读
- java - 反序列化杰克逊中的可选可空字段
- firebase - Firestore Cloud Function 更新/事务缓慢
- python - 如何在 python 3 中模拟 python 2 str.lower()
- node.js - 如何从 json 对象中删除索引值
- angularjs - 输入及其标签显示在弹出 mdDialog 顶部的问题
- javascript - 转换 JSON 日期
- c# - 如何将 SignalR 2 与 WEB API 一起使用,从 API 和客户端调用 SignalR 方法
- java - 通过 java 企业代理的 Twilio SMS 调用失败并出现以下错误
- java - 用一个简单的例子理解死锁
- laravel - 如何调用配置中定义的类