Open
Description
What happened?
When the Filament emailVerification feature is enabled, users are redirected to an email verification waiting page after registration. However, this page lacks a logout button, causing users to be trapped in the current session with no way to switch accounts.
How to reproduce the bug
Steps to Reproduce
- Enable the email verification feature in your Filament Panel:
$panel
->default()
->id('admin')
->path('admin')
->login(Login::class)
->registration(Register::class)
->passwordReset()
->emailVerification() // Enable email verification
// ...other configurations
- Implement the diogogpinto/filament-auth-ui-enhancer package:
->plugins([
AuthUIEnhancerPlugin::make()
->emptyPanelBackgroundImageUrl(asset('images/banner.webp'))
->formPanelPosition('right')
->mobileFormPanelPosition('bottom')
->showEmptyPanelOnMobile(false)
])
- After a new user registers, they are directed to a page to wait for email confirmation
- On this page, users cannot log out or switch accounts because there is no logout button provided
Package Version
1.0.2
PHP Version
8.3
Laravel Version
12.*
Which operating systems does with happen with?
No response
Notes
Expected Behavior
The email verification waiting page should include a logout button to allow users to log out and switch to another account if needed.
Possible Solution
Add a logout button to the email verification page (EmailVerificationPrompt) template, maintaining consistency with other authentication pages. This would prevent users from being trapped in the current session.