Skip to content

[Bug]: Missing Logout Button on Email Verification Waiting Page #16

Open
@ame1973

Description

@ame1973

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

  1. 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
  1. Implement the diogogpinto/filament-auth-ui-enhancer package:
->plugins([
    AuthUIEnhancerPlugin::make()
        ->emptyPanelBackgroundImageUrl(asset('images/banner.webp'))
        ->formPanelPosition('right')
        ->mobileFormPanelPosition('bottom')
        ->showEmptyPanelOnMobile(false)
])
  1. After a new user registers, they are directed to a page to wait for email confirmation
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions