v2.0.0
Breaking changes
- Added hidden recovery code input to merge 2fa and recovery code input to one input (better UX)
- Changed vendor namespace of package from
filament-two-factor-authtofilament-2fa
How to upgrade
- Change
vormkracht10/filament-two-factor-authtovormkracht10/filament-2faand require2.0.0incomposer.jsonand runcomposer update - Rename
config/filament-two-factor-auth.phptoconfig/filament-2fa.php(when config is published) - Rename
views/vendor/filament-two-factor-authtoviews/vendor/filament-2fa(when views are published) - When you have a custom 2fa view, make sure
vendor/filament-2fa/auth/login-two-factor.blade.phpcontains a hidden input namedrecovery_code:
<div style="display: none">
<input type="text" id="recovery_code" wire:model="recovery_code" name="recovery_code" value="">
</div>