Download the PHP package buckhamduffy/laravel-two-factor without Composer
On this page you can find all versions of the php package buckhamduffy/laravel-two-factor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buckhamduffy/laravel-two-factor
More information about buckhamduffy/laravel-two-factor
Files in buckhamduffy/laravel-two-factor
Package laravel-two-factor
Short Description This is my package laravel-two-factor
License MIT
Homepage https://github.com/buckhamduffy/laravel-two-factor
Informations about the package laravel-two-factor
Laravel Two Factor
An opinionated two factor authentication package for Laravel.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Add the trait and interface to the user model
Add the middleware to your Kernel.php
SMS (Not Implemented Yet)
When a code is requested via SMS, an event will be dispatched that you can listen for to send the SMS. You can listen for the TwoFactorCodeRequested
event and send the SMS using your preferred SMS provider.
CustomThrottlesLogins
This is a custom login throttler, that throttles based on the user's email address. This is to prevent brute force attacks on the login page.
First 5 attempts are allowed, then throttled for 5 minutes. The 8th attempt will be locked out for 15 minutes. Any subsequent attempts will be locked out for 1 hour.
Attempts are reset after successful login, or 24 hours after the last attempt.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Aaron Florey
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-two-factor with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^9.0|^10.0|^11.0
bacon/bacon-qr-code Version ^2.0
pragmarx/google2fa-qrcode Version ^3.0
pragmarx/recovery Version ^0.2.1
spatie/laravel-data Version ^3.0|^4.0