Email 2FA
This package seamlessly integrates two-factor authentication (2FA) into your application using email verification codes. Enhance the security of your user accounts and protect sensitive data.
Author:
Solution Forest
Documentation
- Secure Your Filament Applications with Email-Based 2FA
- Installation
- Adding the plugin to a panel
- Preparing your filament user class
#Secure Your Filament Applications with Email-Based 2FA
This package seamlessly integrates two-factor authentication (2FA) into your Filament PHP applications using email verification codes. Enhance the security of your user accounts and protect sensitive data.
#Key Features:
- Easy Integration: Quickly add 2FA to your Filament projects with minimal configuration.
- Email Verification: Users receive time-sensitive codes via email for secure login.
- Customizable: Tailor the 2FA experience with configurable options (e.g., code expiry time).
- Seamless User Experience: Provides a user-friendly interface for setting up and using 2FA.
#How it Works:
- Upon successful login, users are prompted to enter a verification code sent to their email address.
- The package handles code generation, email delivery, and verification logic.
- Once verified, users gain access to the protected Filament panel.
#Ideal For:
Filament applications handling sensitive user data. Projects requiring an extra layer of account security. Developers seeking a straightforward 2FA solution.
#Installation
You can install the package via composer:
composer require solution-forest/filament-email-2fa
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-email-2fa-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-email-2fa-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-email-2fa-views"
This is the contents of the published config file:
return [
'code_table' => 'filament_email_2fa_codes',
'verify_table' => 'filament_email_2fa_verify',
'code_model' => \Solutionforest\FilamentEmail2fa\Models\TwoFaCode::class,
'verify_model' => \Solutionforest\FilamentEmail2fa\Models\TwoFaVerify::class,
'expiry_time_by_mins' => 10,
'2fa_page' => \Solutionforest\FilamentEmail2fa\Pages\TwoFactorAuth::class,
'login_success_page' => \Solutionforest\FilamentEmail2fa\Pages\LoginSuccessPage::class,
];
#Adding the plugin to a panel
use Solutionforest\FilamentEmail2fa\FilamentEmail2faPlugin;
return $panel
// ...
->plugin(FilamentEmail2faPlugin::make());
#Preparing your filament user class
Implement the 'RequireTwoFALogin' interface and use the 'HasTwoFALogin' trait
use Solutionforest\FilamentEmail2fa\Interfaces\RequireTwoFALogin;
use Solutionforest\FilamentEmail2fa\Trait\HasTwoFALogin;
class FilamentUser extends Authenticatable implements FilamentUserContract,RequireTwoFALogin{
use HasTwoFALogin;
}
The author
From the same author
SolutionForest Filaletter
This is an email marketing plugin built specifically for Filament Admin Panel. It aims to bring the distribution of content by email into the admin panel, where we believe it should be, along with the same ethos of flexibility and user-friendliness that FilamentPHP provides. This package is based on the open-source project SendPortal Core.
Author:
Solution Forest
Tree
This plugin creates model management page with heritage tree structure view for Filament Admin. It could be used to create menu, etc.
Author:
Solution Forest
Access-Management
This is total different concept on handle role and permission. A RBAC permission control through spatie/laravel-permission.
Author:
Solution Forest
Website CMS Management
The Filament CMS Website Plugin is specifically built for website owners who use Filament CMS to manage their website content.
Author:
Solution Forest
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese