Giter VIP home page Giter VIP logo

dcat-auth-google-2fa's People

Contributors

asundust avatar stylecibot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dcat-auth-google-2fa's Issues

用户设置--base64二维码图片展示问题

  1. 安装扩展并启用之后,右上角进入用户设置,两步验证二维码字段展示的是图片的base64字符串,追踪源码发现没有给img标签,修改文件src/Http/Controllers/DcatAuthGoogle2FaAuthController.php第158行:
->width(3)
->with(function () use ($url) {
    return '<img src="'.$url.'" />';
});

与Laravel Jetstream共存的问题:pragmarx/google2fa版本冲突

作者您好,

当我尝试在使用 Laravel Jetstream 的项目中安装 asundust/dcat-auth-google-2fa 时,遇到了 pragmarx/google2fa 的版本冲突问题。具体表现为,asundust/dcat-auth-google-2fa 需要的 pragmarx/google2fa 版本为 ^3.0,而 Laravel Jetstream 的依赖 laravel/fortify 需要的版本为 ^7.0^8.0

错误信息如下:

PS C:\www> composer require asundust/dcat-auth-google-2fa
./composer.json has been updated
Running composer update asundust/dcat-auth-google-2fa
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-google-2fa * -> satisfiable by asundust/dcat-auth-google-2fa[dev-main, 1.0.0, 1.0.1, 9999999-dev].
- asundust/dcat-auth-google-2fa[dev-main, 1.0.0, ..., 1.0.1] require pragmarx/google2fa ^3.0 -> found pragmarx/google2fa[v3.0.0, v3.0.1, v3.0.2, v3.0.3] but the package is fixed to v8.0.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require asundust/dcat-auth-google-2fa:*" to figure out if any version is installable, or "composer require asundust/dcat-auth-google-2fa:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
PS C:\www> composer why pragmarx/google2fa
laravel/fortify v1.18.0 requires pragmarx/google2fa (^7.0|^8.0)

请问有可能调整此插件以解决与 laravel/fortify 的版本冲突吗?或者,是否有其他推荐的解决方案?

祝好!

You need to install a service package or assign yourself the service to be used

image

之前是类加载不到,我改成了

new Google2FA();

然后报错

Call to undefined method PragmaRX\Google2FA\Google2FA::getQRCodeInline()

版本
asundust/dcat-auth-google-2fa (1.0.2)

  • Upgrading pragmarx/google2fa (v3.0.3 => v8.0.1)
  • Upgrading pragmarx/google2fa (v3.0.3 => v8.0.1)

我看Google2FA 也没有这个方法,请问是兼容到哪个版本?

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.