recaptcha-enterprise - Google Enterprise Recaptcha 对未记录请求的基本指标进行评分
问题描述
我遵循了前端集成 javascript示例,它显然可以正常工作。
我能够在我的 django 后端评估我从grecaptcha.enterprise.execute
一个 action收到的令牌login
。
但是,当我查看该站点密钥的指标时,不会捕获请求或任何分析。
编辑: 下面是我的 NuxtJS 实现
methods: {
login() {
const _this = this;
try {
grecaptcha.enterprise.ready(function() {
grecaptcha.enterprise
.execute(process.env.SITE_KEY, {
action: "login"
})
.then(function(token) {
_this.auth.token = token;
try {
_this.$auth.loginWith("local", {
data: _this.auth
});
} catch (e) {
_this.$notify({
group: "login",
type: "error",
title: "ERROR:",
text: e.response.data.error
});
}
});
});
} catch (e) {
this.$notify({
group: "login",
type: "error",
title: "ERROR:",
text: "Captcha Error"
});
}
}
}
解决方案
推荐阅读
- r - R函数内的循环
- excel - 工作表名称作为 SUB 参数与 VLOOKUP
- java - Spring Boot - YML 配置 - 合并时擦除条目
- java - Keycloak docker 容器无法从卷中导入领域
- vue.js - VueJS替换组件的数据//相同的路由问题
- php - 搜索laravel与builder的关系
- java - Google/Tink:使用 AWS KMS Key 加密密钥材料但得到 NullPointerException
- reactjs - 如何使用 .map 函数索引切换动态生成的下拉列表?
- javascript - 等待对象内部的 Promise 解决
- image - 如何使用新类重新训练图像分类器并保留旧类