lifeonscreen / nova-google2fa Goto Github PK
View Code? Open in Web Editor NEWThis package provides Google2FA support to Laravel Nova.
This package provides Google2FA support to Laravel Nova.
The renderNavigation() returns the view google2fa::navigation, that is not present in the package.
Hi there.
As a temporary solution, I removed the return type of the User->user2fa method like below.
Yet, this needs clarifying, which HasOne should it be, because it tried the Eloquent HasOne, and App namespace has no HasOne.
Temporary solution:
/**
* @return HasOne
*/
public function user2fa(): BelongsToOne
{
return $this->hasOne(User2fa::class);
}
to
public function user2fa()
{
return $this->hasOne(User2fa::class);
}
Hello,
First off, this isn't a bug report. I really like using this package, super easy to set up! I was just wondering if it is possible to extend the lifetime of a 2FA session. Currently I find myself (after a couple of hours of idle time) still logged in, but I need to enter a new code. I'd like to make this period longer (i.e. seven days on the same machine) is this possible?
Thank you!
I want to change texts and language but I cant override views. "php artisan vendor:publish" not publish views.
Thanks
Hi there,
Do you plan to update the package for 4 compatibility?
Thanks.
When this occurs, in the file
app/Providers/AppServiceProvider.php
the register method should be completed with:
public function register()
{
//...
$this->loadViewsFrom(__DIR__.'/../resources/views', 'nova');
}
Are there any plans to update this to support pragmarx/google2fa-laravel v1.3.2?
v1.3.2 of pragmarx/google2fa-laravel fixes an issue for PHP 7.4+
The actual migration doesn't work when user_id is an uuid for example.
tried to install but it returns
General error: 1215 Cannot add foreign key constraint (SQL: alter table user_2fa
add constraint user_2fa_user_id_foreign
foreign key (user_id
) references users
(id
))
while executing
php artisan migrate
The QR Code generation is not working anymore since the Google API for QR generator is turned off. This is explained here: https://github.com/antonioribeiro/google2fa. The QR Codes have to be created in other ways now: https://github.com/antonioribeiro/google2fa#generating-qrcodes
Can you please upgrade the CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
on migrations to use pure eloquent instead?
Hi there,
There was a problem when migrating, I fixed on my fork, you can see below.
Problem was with foreign key on my setup at least.
Due to an issue in the pragmarx/google2fa-laravel package (antonioribeiro/google2fa-laravel#96), which was fixed in antonioribeiro/google2fa-laravel#99, this package also crashes. Could the dependency be updated?
I'm assuming this package is abandoned?
Has anyone made a fork of this which fixes the outstanding issues? In particular, the package doesn't work with PHP 7.4+
Thanks
Scott
Hi @janicerar, can you please make an option to override the User2fa model? This way we can set a custom $connection
on the User2fa model.
I think this will take time, so if you can just make a release for now with just the User2fa with a $connection
reading from the lifeonscreen2fa.php
would help a lot!
And one more thing, doesn't affect anything but I think that the annotations from the User2fa model aren't updated.
1、The config file , should name is google2fa.php
2、The Config file ,should add 'auth' => Illuminate\Contracts\Auth\Factory::class
thanks
What about providing some langugage files to translate the informations in the blade files?
I am implement this package, when to login not show google2fa, the middleware not work and redirect directly route dashboard
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.