cretueusebiu / laravel-spark-google2fa Goto Github PK
View Code? Open in Web Editor NEWGoogle Authenticator support for Laravel Spark
Home Page: https://packagist.org/packages/eusebiu/laravel-spark-google2fa
License: MIT License
Google Authenticator support for Laravel Spark
Home Page: https://packagist.org/packages/eusebiu/laravel-spark-google2fa
License: MIT License
Hi, im trying to use this with spark v7. After following installation instruction in Readme, when I open setting page in spark, the 2FA section under password section was not available.
Some error in console:
Property or method "generating" is not defined
Property or method "generate" is not defined
Property or method "qrcode" is not defined
Property or method "showSecret" is not defined
Error in render: "TypeError: Cannot read property 'length' of undefined"
Cannot read property 'length' of undefined
Do I miss something during the installation process?
Thank you.
I'd like to be able to customise the views, but they're not tagged for export.
I followed all of your steps and 2fa appears in the user security profile tab. However I never get prompted to enter code form the authenticator during login. Is there anything else that needs to be done to make this work?
Apparently, I need to activate something, though I am not sure on how to do that. The error is
It's not secure to send secret keys to Google Apis, you have to explicitly allow it by calling $google2fa->setAllowInsecureCallToGoogleApis(true).
Where am I supposed to enable this ? Is it a normal behaviour ?
Thanks for the answer.
Hi,
Thank you for making this great package!
When running php artisan route:cache
I receive the following error:
Route cache cleared!
[Exception]
Serialization of 'Closure' is not allowed
This took a bit of digging to figure out what was causing this to happen, but when I remove the service provider for this package the error goes away.
This causes issues when deploying with Envoyer which runs the command by default.
Great work on this and very quickly I may add too!
Just thought I would throw this out there and would do a PR if you're willing to allow me to allow the enter key to submit the verify qr code form after the initial setup of two factor auth for the user...
With your blessing, the PR should take literally a minute ;)
Thanks!
After following your installations steps, I get the following error message.
No hint path defined for [google2fa]. (View: resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php) (View: resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php) (View: resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php)
The only clue I can find, is that the last command that I should've run, npm run dev
, failed on me;
$ npm run dev
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/7.5.0/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! missing script: dev
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! npm-debug.log
Any clues as to where I could go looking?
I'm getting the following error. Any pointers?
Call to undefined method PragmaRX\\Google2FA\\Google2FA::setAllowInsecureCallToGoogleApis()
Hi,
i followed installation and everything was ok. published assets, and put Spark::useTwoFactorAuth(); in SparkServiceProvider -> booted
but i can't manage to get the panel to appear in settings->security
but, if i open the code, the view pieces are all there
what i'm doing wrong? please help me as I'm pretty new to Spark...
Hi,
Does this support latest spark version?
I recently upgraded to Spark to spark-aurelius v9.1.0 and now I run into the following error message:
In ProviderRepository.php line 208:
Class 'Laravel\Spark\Providers\Google2FAServiceProvider' not found
However, I have laravel-spark-google2fa v2.0.2 installed and the service provider in question exists where it has for quite some time in:
/www/laravel/spark/src/Http/Providers/Google2FAServiceProvider.php
I've tried a lot of simple things like clearing the cache and running composer dump-autoload
to no avail.
Anyway, has anyone run into a similar issue? I'm not sure where to go from here.
Hi,
You need to make your getQrUrl function URL safe by encoding it as spaces or safe characters in the $details['vendor'] string can cause the QR code generation to fail.
Modify line 53 of TwoFactorAuthController to URLencode the vendor details as follows:
$company = isset(Engagement::$details['vendor']) ? urlencode(Engagement::$details['vendor']) : url()->to('/');
That will resolve this bug
This migration is now attempting to run before my user table has been created.
Can you shift the date of the migration into the future or create the option to publish/override it?
Hi, I've a Spark 7.1.4 project and I successfully (almost) installed and configured your module (thanks, it's great funcionality). I can add the project on Google Authenticator but when I enter the code to confirm the 2fa activation the code is not valid
Do you have any idea what may cause this kind of behaviour?
Thanks a lot!
This package no longer works in the latest version of spark due to upgrading to Vue 2.0. There's at least one error with the package, upon attempting to open the modal this error is produced:
[Vue warn]: Inline-template components must have exactly one child element.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.