This package provides a new Login component that replaces the traditional email and password form with a simple passwordless login form.
You can install the package via composer:
composer require c6digital/filament-passwordless-loginOptionally, you can publish the views using
php artisan vendor:publish --tag="filament-passwordless-login-views"Register the plugin on your Filament panel.
use C6Digital\PasswordlessLogin\PasswordlessLoginPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->//...
->plugin(PasswordlessLoginPlugin::make());
}This will automatically register the new login page, overwriting the one provided by Filament. It also registers the necessary routes to authenticate users using a magic login link.
Sending login links emails during development can be difficult. If you are still storing passwords for your users, you can enable password authentication in local environments.
PasswordlessLoginPlugin::make()
->allowPasswordInLocalEnvironment()Now a "Password" field will be displayed on the Login page when APP_ENV=local.
This package also provides an Action that can be used inside of Filament tables.
use C6Digital\PasswordlessLogin\Actions\LoginLinkAction;
$table
->actions([
LoginLinkAction::make(),
]);If you need to generate a login link without accessing the site, you can use the passwordless:link command.
php artisan passwordless:link {email}composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.