# dcat-auth-captcha **Repository Path**: techutter/dcat-auth-captcha ## Basic Information - **Project Name**: dcat-auth-captcha - **Description**: Sliding captcha for dcat-admin auth / dcat-admin登陆 滑动验证插件 多平台支持 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-05-22 - **Last Updated**: 2021-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README dcat-admin登陆 滑动验证插件 多平台支持 ====== ![StyleCI build status](https://github.styleci.io/repos/355441406/shield) dcat-admin登陆 滑动验证插件 多平台支持 > 另有 [laravel-admin版](https://github.com/asundust/auth-captcha) ### Demo演示 [~~演示站点~~](https://captcha.leeay.com)(暂时无,目前地址为laravel-admin版的演示地址) ### 支持(按照字母顺序) - [顶象](https://www.dingxiang-inc.com/business/captcha):heavy_check_mark: - [极验](http://www.geetest.com):heavy_check_mark: - [hCaptcha(和谷歌Recaptcha v2一样)](https://www.hcaptcha.com):heavy_check_mark:(**免费,速度一般**) - [Recaptcha v2(谷歌)](https://developers.google.com/recaptcha):heavy_check_mark:(**国内可用,完全免费**) - [Recaptcha v3(谷歌)](https://developers.google.com/recaptcha):heavy_check_mark:(**国内可用,完全免费**) - [~~数美(暂不支持网页)~~](https://www.ishumei.com/product/bs-post-register.html) - [腾讯防水墙](https://cloud.tencent.com/document/product/1110/36839):heavy_check_mark: - [同盾](https://x.tongdun.cn/product/captcha) - [V5验证](https://www.verify5.com/index):heavy_check_mark:(**免费版日限100次**) - [Vaptcha](https://www.vaptcha.com)(**不完全免费,不过该验证码使用难度相对较高**)(**需要一个密钥来开发**) - [网易](http://dun.163.com/product/captcha) - [云片](https://www.yunpian.com/product/captcha) (**似乎存在一个奇怪的bug死活调不通**) - 有主流的未发现的、额外有需求的请[issue](https://github.com/asundust/dcat-auth-captcha/issues) > 受限制于有些验证码密钥是收费版,目前代码不能做到完全兼容 如果有好心人士提供密码 我将严格保密 仅用于开发工作 > 目前不打算开发兼容1.x版本的代码 ![img](https://user-images.githubusercontent.com/6573979/113974655-df986e00-9870-11eb-96c6-aa9f71b8016f.gif) ### 安装 ``` composer require asundust/dcat-auth-captcha ``` ### 获取密钥参数配置 #### 顶象 ##### 可配置的参数 - AppId: {AppID} - Secret: {AppSecret} - 验证码样式: popup // 弹出式: popup 嵌入式: embed 内联式: inline 触发式: oneclick (不填写默认popup) - 额外配置: [] ##### 相关链接 - 访问 [https://www.dingxiang-inc.com/business/captcha](https://www.dingxiang-inc.com/business/captcha) - [官网文档配置DEMO](https://cdn.dingxiang-inc.com/ctu-group/captcha-ui/demo) - [官网文档地址](https://www.dingxiang-inc.com/docs/detail/captcha) #### 极验 ##### 可配置的参数 - AppId: {ID} - Secret: {KEY} - 验证码样式: bind // 隐藏式: bind 弹出式: popup 浮动式: float 自定区域浮动式(与popup类似,由于登录页面无需自定区域,故效果和popup一样的): custom (不填写默认bind) - 额外配置: [] ##### 相关链接 - 访问 [https://www.dingxiang-inc.com/business/captcha](https://www.dingxiang-inc.com/business/captcha) - [官网文档地址](http://docs.geetest.com/sensebot/deploy/server/php) #### hCaptcha ##### 可配置的参数 - AppId: {sitekey} - Secret: {secret} - 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible) (invisible有点bug尚未找到号的解决方案,暂不推荐使用) ##### 相关链接 - 访问 [https://dashboard.hcaptcha.com/overview](https://dashboard.hcaptcha.com/overview) - [官网文档地址(前端)显示](https://docs.hcaptcha.com/configuration) - [官网文档地址(前端)隐藏](https://docs.hcaptcha.com/invisible) - [官网文档地址(后端)](https://docs.hcaptcha.com) #### Recaptcha v2(谷歌) ##### 可配置的参数 - AppId: {site_key} - Secret: {secret} - 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible) - 服务域名(可选): https://www.google.com // 服务域名,可选,无此选项默认为 https://recaptcha.net ##### 相关链接 - 访问 [https://www.google.com/recaptcha/admin/create](https://www.google.com/recaptcha/admin/create) 选择v2版 - 管理面板 [https://www.google.com/recaptcha/admin](https://www.google.com/recaptcha/admin) - [官网文档地址(前端)显示](https://developers.google.com/recaptcha/docs/display) - [官网文档地址(前端)隐藏](https://developers.google.com/recaptcha/docs/invisible) - [官网文档地址(后端)](https://developers.google.com/recaptcha/docs/verify/) #### Recaptcha v3(谷歌) ##### 可配置的参数 - AppId: {site_key} - Secret: {secret} - 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible) - 服务域名(可选): https://www.google.com // 服务域名,可选,无此选项默认为 https://recaptcha.net - 可信任分数(可选): 0.7 // 可信任分数,可选,无此选项默认为 0.7 ##### 相关链接 - 访问 [https://www.google.com/recaptcha/admin/create](https://www.google.com/recaptcha/admin/create) 选择v3版 - 管理面板 [https://www.google.com/recaptcha/admin](https://www.google.com/recaptcha/admin) - [官网文档地址(前端)](https://developers.google.com/recaptcha/docs/v3) - [官网文档地址(后端)](https://developers.google.com/recaptcha/docs/verify/) #### 腾讯防水墙 ##### 可配置的参数 - AppId: {AppID} - Secret: {AppSecretKey} ##### 相关链接 - 新用户购买 [https://cloud.tencent.com/product/captcha](https://cloud.tencent.com/product/captcha) - 新用户[官方使用文档地址](https://cloud.tencent.com/document/product/1110/36839) - 老用户[官方使用文档地址](https://007.qq.com/captcha/#/gettingStart) - [关于腾讯防水墙收费的声明(新用户终身免费5万次)](https://007.qq.com/help.html?ADTAG=index.head) #### V5验证 ##### 可配置的参数 - AppId: {APP ID} - Secret: {APP Key} - 主机: {Host} ##### 相关链接 - 访问 [https://www.verify5.com/console/app/list](https://www.verify5.com/console/app/list) - 访问 [官方使用文档地址](https://www.verify5.com/doc/reference) #### ~~Vaptcha~~ ##### ~~可配置的参数~~ - ~~AppId: {VID}~~ - ~~Secret: {Key}~~ - ~~验证码样式: invisible // 隐藏式: invisible 点击式: click 嵌入式: embed (不填写默认invisible)~~ - ~~额外配置: []~~ ##### 相关链接 - 访问 [https://www.vaptcha.com](https://www.vaptcha.com) - 访问 [官方使用文档地址](https://www.vaptcha.com/document/install) #### ~~网易易盾~~ ##### ~~可配置的参数~~ - ~~AppId: {captchaId}~~ - ~~Secret: {secretId}~~ - ~~Secret Key: {secretKey}~~ - ~~验证码样式: // 注意后台申请的类型!!! 常规弹出式: popup 常规嵌入式: embed 常规触发式: float 无感绑定按钮:bind 无感点击式: ''(留空,奇葩设定) (不填写默认popup)~~ - ~~额外配置: []~~ ##### 相关链接 - 访问 [http://dun.163.com/product/captcha](http://dun.163.com/product/captcha) - 访问 [官方使用文档地址](http://support.dun.163.com/documents/15588062143475712?docId=150401879704260608) #### ~~云片~~ ##### ~~可配置的参数~~ - ~~AppId: {APPID}~~ - ~~Secret: {Secret Id}~~ - ~~Secret Key: {secretKey}~~ - ~~验证码样式: // flat: 直接嵌入 float: 浮动 dialog: 对话框 external: 外置滑动(拖动滑块时才浮现验证图片,仅适用于滑动拼图验证) (不填写默认dialog) TIP:flat和external貌似存在回调bug,不推荐使用~~ - ~~额外配置: []~~ ##### 相关链接 - 访问 [https://www.yunpian.com/console/#/captcha/product](https://www.yunpian.com/console/#/captcha/product) - 访问 [官方使用文档地址](https://www.yunpian.com/official/document/sms/zh_CN/captcha/captcha_service) ### 使用 在浏览器里打开dcat-admin登陆页 ### 未来 - 加入更多滑动验证码(持续添加ing):heavy_check_mark: - ~~验证码功能模块化,提供给Laravel项目内使用(该想法实现有点难度,看着办吧)~~ ### 升级注意事项 [UPGRADE.md](UPGRADE.md) ### 更新日志 [CHANGE_LOG.md](CHANGE_LOG.md) ### 鸣谢名单 [de-memory](https://github.com/de-memory) ### 支持 如果觉得这个项目帮你节约了时间,不妨支持一下呗! ![alipay](https://user-images.githubusercontent.com/6573979/91679916-2c4df500-eb7c-11ea-98a7-ab740ddda77d.png) ![wechat](https://user-images.githubusercontent.com/6573979/91679913-2b1cc800-eb7c-11ea-8915-eb0eced94aee.png) ### License [The MIT License (MIT)](https://opensource.org/licenses/MIT)