404labfr / laravel-auth-checker Goto Github PK
View Code? Open in Web Editor NEWLaravel Auth Checker allows you to log users authentication, devices authenticated from and lock intrusions.
Home Page: https://marceau.casals.fr
Laravel Auth Checker allows you to log users authentication, devices authenticated from and lock intrusions.
Home Page: https://marceau.casals.fr
When I login nothing is saved to the devices or logins table in the database. Do I have to add an event or something in the login controller?
Thanks
good morning, sorry for my orrible english.
i have installed laravel-auth-checker and i think that this is a good solution for increase the security of a project. thanks @404labfr.
i can see that you register the ip of user login. with some packages (http://lyften.com/projects/laravel-geoip/ for ex.) we can locate approximately the position of the user. If i want to increase the security, for example if i sure that my users logons always from a single country (suppose for a crm for ex.), where i can edit your package for insert the control? i think the better solution is create a new middleware. right?
reguards
I would like to need more feature mac address.
Could anyone please guide me how to customize it?
Thank you for your repository.
Hi guys, could you please tell me why we could use the plugin just with the recent version 'laravel/framework 5.4.*' and not with the other 'old' releases '5.3', '5.2' ..
I think it will be better if we could adjust it :)
Thanks in advance.
Hi guys, nice work, did you plan to implement trust and untrust device?
With EU laws and all of the security and data stuff breaks and leaks, It would be nice to have the option to check if we wanted to save certain data like the IP address and any other data.
@MarceauKa 29 days passed, and PRs are still there unreviewed.
Would it be possible to use this package with an API, I.E a react native app, posting data to the api where we save logins and devices
I need to modify the model to specify a different table and different connection.
Requirements in the README.md state that Laravel should be 5.4 or greater. The composer.json file does not reflect and fails with 5.5 versions of laravel.
README.md
Requirements
Laravel >= 5.4
Current composer.json
"laravel/framework": "5.4.*",
Updated composer.json
"laravel/framework": ">=5.4",
#10 update laravel requirement
Hi @MarceauKa
Is the package still maintained?
Two months have passed since I submitted two PRs, but no activity has been seen so far.
Do you have plans to upgrade this project to Laravel 11?
Thanks!
Hi,
I had a problem migrating the 2 tables, i had to rename 2017_03_25_124200_create_logins_table.php to 2018_03_25_124200_create_logins_table.php
Devices table should migrate first because of the reference to to foreign in create login table.
lab404/laravel-auth-checker v2.0
Use this line in AppServiceProvider
Model::shouldBeStrict(!$this->app->isProduction());
Thank you for sharing,
i think i hit a bug...
if you simulate a failed login, and then log in successfully you will notice that no record was added due to the authentication throttling.
a normal behavior should be add a record if the type status changes regardless of throttling time, as this is a new state and should be logged.. so right now after a failed login, i do not get a successful log recorded.
the fix is as follow:
add this && $login['type'] == Login::TYPE_LOGIN
to the if statement as shown below in the:
AuthChecker.php
file
if (isset($login->created_at) && $login->created_at->gt($limit) && $login['type'] == Login::TYPE_LOGIN) { return false; }
cheers,
Jay
The jenssegers/agent package hasn't been updated in 4 years and has a dependency conflict now with Laravel Jetstream.
- laravel/jetstream[v4.1.0, ..., v4.2.2] require mobiledetect/mobiledetectlib ^4.8 -> satisfiable by mobiledetect/mobiledetectlib[4.8.01, ..., 4.8.05].
- You can only install one version of a package, so only one of these can be installed: mobiledetect/mobiledetectlib[2.7.6, ..., 2.8.45, 4.8.01, ..., 4.8.05].
- Conclusion: install mobiledetect/mobiledetectlib 2.8.45 (conflict analysis result)
- Root composer.json requires laravel/jetstream ^4.1 -> satisfiable by laravel/jetstream[v4.1.0, ..., v4.2.2].
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.