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-auth
tofilament-2fa
How to upgrade
- Change
vormkracht10/filament-two-factor-auth
tovormkracht10/filament-2fa
and require2.0.0
incomposer.json
and runcomposer update
- Rename
config/filament-two-factor-auth.php
toconfig/filament-2fa.php
(when config is published) - Rename
views/vendor/filament-two-factor-auth
toviews/vendor/filament-2fa
(when views are published) - When you have a custom 2fa view, make sure
vendor/filament-2fa/auth/login-two-factor.blade.php
contains a hidden input namedrecovery_code
:
<div style="display: none">
<input type="text" id="recovery_code" wire:model="recovery_code" name="recovery_code" value="">
</div>