digifactory/filament-wildcard-login

Allow all e-mail addresses for a specific domain name to login to a generic account for that domain.

v1.0.1 2024-08-22 10:29 UTC

This package is auto-updated.

Last update: 2024-09-20 20:45:14 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package allows you to allow users with an e-mail address ending in specific domain names to login using an e-mail instead of using a password. After installing this package you can have a generic account (e.g. helpdesk@digifactory.nl) and everyone using a @digifactory.nl mail address can login using the e-mail sent directly to their inbox.

Installation

You can install the package via composer:

composer require digifactory/filament-wildcard-login

Usage

You can add the FilamentWildcardLoginPlugin to your Filament Panel like this:

->plugins([
    FilamentWildcardLoginPlugin::make()
        ->domains([
            'digifactory.nl',
        ])
        ->loginDirectlyWithoutSendingEmail(app()->environment('local')),
])

These methods are available on the FilamentWildcardLoginPlugin instance:

Preview

preview preview-email

Testing

composer test

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

License

The MIT License (MIT). Please see License File for more information.