angular - Angular v8 中的 Google Recaptcha v2 图像
问题描述
我在 Angular v8 应用程序中使用 ngx-recaptcha2 ( https://www.npmjs.com/package/ngx-captcha )。
我在 app.module.ts 中包含了 NgxCaptchaModule 并添加到了消费者组件中
<ngx-recaptcha2 #captchaElem
[siteKey]="siteKey"
(reset)="handleReset()"
(expire)="handleExpire()"
(load)="handleLoad()"
(success)="handleSuccess($event)"
(error)="handleError($event)"
[useGlobalDomain]="false"
[size]="normal"
[hl]="en"
[theme]="dark"
[type]="image" />
When the user keeps entering the wrong image validation, there is a message in the captcha which displays as "Please try again" as below image.
[![Error message displayed when user selects wrong images][1]][1]
So, in this case, how to get a callback/response of this error message to the rendered component from the recaptcha?
Any help here would be appreciated. Thank you!
[1]: https://i.stack.imgur.com/DtFvL.png
解决方案
推荐阅读
- vba - 使用数组过滤器打开报表
- android - android: ViewPager Indicator 就像 Tinders 图片
- python - 基于 spark 数据框单元格值的查询
- build - 如何在 QtCreator 中更改构建目录以添加子文件夹
- python - {"message":"Missing Authentication Token"} 无服务器 Lambda 函数的 curl 和端点
- android - 如何在搜索视图中制作过滤系统
- javascript - React 中的 insertRow() 和 appendChild() 等价物
- java - JMS Queue Resource Leak Suspected - 注入连接、会话和队列
- r - 使用 left_join 合并数据,但仅从一组行中获取一个值
- python - 为什么 stat.filemode 的第一个字母是 `?`?