Giter Site home page Giter Site logo

asundust / dcat-auth-captcha Goto Github PK

View Code? Open in Web Editor NEW
53.0 2.0 3.0 60 KB

Sliding captcha for dcat-admin auth / dcat-admin登陆 滑动验证插件 多平台支持

Home Page: https://packagist.org/packages/asundust/dcat-auth-captcha

License: MIT License

JavaScript 12.17% PHP 50.86% Blade 36.97%
laravel dcat-admin captcha extension geetest recaptcha hcaptcha

dcat-auth-captcha's Introduction

Dcat-Admin登录 滑动验证插件 多平台支持

StyleCI build status

Dcat-Admin登录 滑动验证插件 多平台支持

另有 Laravel-Admin版

Demo演示

演示站点(暂时无,目前地址为Laravel-Admin版的演示地址)

支持(按照字母顺序)

受限制于有些验证码密钥是收费版,目前代码不能做到完全兼容 如果有好心人士提供密码 我将严格保密 仅用于开发工作

目前不打算开发兼容1.x版本的代码

img

安装

composer require asundust/dcat-auth-captcha
  • 重要说明:由于密钥配置是在后台配置,首次安装前,确保已经登录,安装后及时配置密钥,否则将出现无法登录的情况
  • 若出现上述情况,请先卸载,再登录,然后安装配置,即可解决

获取密钥参数配置

顶象

可配置的参数
  • AppId: {AppID}
  • Secret: {AppSecret}
  • 验证码样式: popup // 弹出式: popup 嵌入式: embed 内联式: inline 触发式: oneclick (不填写默认popup)
  • 额外配置: []
相关链接

极验

可配置的参数
  • AppId: {ID}
  • Secret: {KEY}
  • 验证码样式: bind // 隐藏式: bind 弹出式: popup 浮动式: float 自定区域浮动式(与popup类似,由于登录页面无需自定区域,故效果和popup一样的): custom (不填写默认bind)
  • 额外配置: []
相关链接

hCaptcha

可配置的参数
  • AppId: {sitekey}
  • Secret: {secret}
  • 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible) (invisible有点bug尚未找到号的解决方案,暂不推荐使用)
相关链接

Recaptcha v2(谷歌)

可配置的参数
  • AppId: {site_key}
  • Secret: {secret}
  • 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible)
  • 服务域名(可选): https://www.google.com // 服务域名,可选,无此选项默认为 https://recaptcha.net
相关链接

Recaptcha v3(谷歌)

可配置的参数
  • AppId: {site_key}
  • Secret: {secret}
  • 验证码样式: invisible // 隐藏式: invisible 复选框: display (不填写默认invisible)
  • 服务域名(可选): https://www.google.com // 服务域名,可选,无此选项默认为 https://recaptcha.net
  • 可信任分数(可选): 0.7 // 可信任分数,可选,无此选项默认为 0.7
相关链接

腾讯防水墙

可配置的参数
  • AppId: {AppID}
  • Secret: {AppSecretKey}
相关链接

V5验证

可配置的参数
  • AppId: {APP ID}
  • Secret: {APP Key}
  • 主机: {Host}
相关链接

Vaptcha

可配置的参数
  • AppId: {VID}
  • Secret: {Key}
  • 验证码样式: invisible // 隐藏式: invisible 点击式: click 嵌入式: embed (不填写默认invisible)
  • 额外配置: []
相关链接

网易易盾

可配置的参数
  • AppId: {captchaId}
  • Secret: {secretId}
  • Secret Key: {secretKey}
  • 验证码样式: // 注意后台申请的类型!!! 常规弹出式: popup 常规嵌入式: embed 常规触发式: float 无感绑定按钮:bind 无感点击式: ''(留空,奇葩设定) (不填写默认popup)
  • 额外配置: []
相关链接

云片

可配置的参数
  • AppId: {APPID}
  • Secret: {Secret Id}
  • Secret Key: {secretKey}
  • 验证码样式: // flat: 直接嵌入 float: 浮动 dialog: 对话框 external: 外置滑动(拖动滑块时才浮现验证图片,仅适用于滑动拼图验证) (不填写默认dialog) TIP:flat和external貌似存在回调bug,不推荐使用
  • 额外配置: []
相关链接

使用

在浏览器里打开dcat-admin登录页

未来

  • 加入更多滑动验证码(持续添加ing):heavy_check_mark:
  • 验证码功能模块化,提供给Laravel项目内使用(该想法实现有点难度,看着办吧)

升级注意事项

UPGRADE.md

更新日志

CHANGE_LOG.md

鸣谢名单

de-memory

支持

如果觉得这个项目帮你节约了时间,不妨支持一下呗!

alipay wechat

License

The MIT License (MIT)

dcat-auth-captcha's People

Contributors

asundust avatar stylecibot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

izqx heartshare mdys

dcat-auth-captcha's Issues

安装失败 not match the constraint

`composer require asundust/dcat-auth-captcha
Using version ^2.0 for asundust/dcat-auth-captcha
./composer.json has been updated
Running composer update asundust/dcat-auth-captcha
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires asundust/dcat-auth-captcha ^2.0 -> satisfiable by asundust/dcat-auth-captcha[2.0.0].
- asundust/dcat-auth-captcha 2.0.0 requires guzzlehttp/guzzle ^6.3 -> found guzzlehttp/guzzle[7.3.0] but it does not match the constraint.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`
图片

ip 拉黑功能

请问是否能增加若登入错误 x 次后,ip自动拉黑的功能?

recaptcha错误

recaptcha v2 设定后
登入没有出现核取方块
登入后出现错误

截圖 2021-05-09 上午12 29 12
截圖 2021-05-09 上午12 30 20

滑块验证未通过

用的是顶象的验证,平时是滑动拼图验证有时候滑块验证通过后又会弹出一个文字点选验证,这个验证通过后虽然页面显示验证成功,但点击登录后会提示验证失败
图片

图片

图片
图片

图片

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.