Giter VIP home page Giter VIP logo

Comments (5)

asundust avatar asundust commented on August 16, 2024 1

我本地全新项目实测无此问题,由于我使用错了依赖,导致出现了/auth/setting页面报错的问题。
虽然我实测升级降级无遇到阻碍,不排除特殊情况导致无法正确升级,这边建议尝试先卸载,再重新安装试试看。
1.0.3版本后支持pragmarx/google2fa的最低版本为4.0起步,此前为3.0,如果你本地额外安装了此包建议升级一下。

from dcat-auth-google-2fa.

asundust avatar asundust commented on August 16, 2024

已修复,升级1.0.3即可

from dcat-auth-google-2fa.

Bossjava avatar Bossjava commented on August 16, 2024
  • pragmarx/google2fa-qrcode[v2.0.0, ..., v2.1.1, v3.0.0] require pragmarx/google2fa >=4.0 -> found pragmarx/google2fa[v4.0.0, v4.0.1, v4.0.2, v5.0.0, v6.0.0, v6.0.1, v6.1.0, v6.1.3, v7.0.0, 7.x-dev, 8.0.0, v8.0.1, 8.x-dev] but it conflicts with your root composer.json require (^2.0|^3.0).

pragmarx/google2fa-qrcode 依赖 pragmarx/google2fa >=4.0

image

from dcat-auth-google-2fa.

Bossjava avatar Bossjava commented on August 16, 2024

image
我被这里坑了

另外如果报错
message: You need to install a service package or assign yourself the service to be used.

需要安装这个依赖,我在升级pragmarx/google2fa时,并没有帮我安装
composer require bacon/bacon-qr-code

谢谢大佬热心帮助,这个扩展很棒!

from dcat-auth-google-2fa.

asundust avatar asundust commented on August 16, 2024

bacon/bacon-qr-code中的二维码服务是需要自主安装,参见 https://github.com/antonioribeiro/google2fa-qrcode#built-in-qrcode-rendering-services 。而在dev模式(require --dev)是默认装了这两个包,我没注意到,所以我本地测试的时候没有复现。
已发布新版增加拦截提示。

from dcat-auth-google-2fa.

Related Issues (4)

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.