Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
dfws-react-ali-captcha
Advanced tools
Readme
更改package.json版本
yarn run build
npm publish
注:镜像源需切换回NPM官方源yarn
yarn start
该组件依赖于react,使用之前请配置react。
<script type="text/javascript" src="https://o.alicdn.com/captcha-frontend/aliyunCaptcha/AliyunCaptcha.js"></script>
<Captcha
SceneId="xxx"
prefix="xxx"
captchaVerifyCallback={captchaVerifyCallback}
/>
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
SceneId | 场景ID。根据步骤二新建验证场景后,您可以在验证码场景列表,获取该场景的场景ID | string | - |
prefix | 身份标。开通阿里云验证码2.0后,您可以在控制台概览页面的实例基本信息卡片区域,获取身份标 | string | - |
mode | 验证码模式。popup表示要集成的验证码模式为弹出式。无需修改 | string | - |
captchaVerifyCallback | 业务请求(带验证码校验)回调函数 | async function | - |
onBizResultCallback | 业务请求结果回调函数 | function | - |
slideStyle | 滑块验证码样式,支持自定义宽度和高度,单位为px。其中,width最小值为320 px | object | - |
language | 语言 | string | - |
captchaVerifyCallback 请求参数:由验证码脚本回调的验证参数,不需要做任何处理,直接传给服务端即可 返回参数:字段名固定,captchaResult为必选;如无业务验证场景时,bizResult为可选
阿里云验证码2.0
FAQs
东方网升 react 阿里云验证码
The npm package dfws-react-ali-captcha receives a total of 90 weekly downloads. As such, dfws-react-ali-captcha popularity was classified as not popular.
We found that dfws-react-ali-captcha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.