Skip to content

Skip verified middleware for email update#192

Merged
joetannenbaum merged 6 commits intomainfrom
feat/skip-verified-email-update
Jan 14, 2026
Merged

Skip verified middleware for email update#192
joetannenbaum merged 6 commits intomainfrom
feat/skip-verified-email-update

Conversation

@WendellAdriel
Copy link
Member

This allows an unverified user to still access the profile update page and update the password.
This is useful in the case that the user entered a wrong email (a typo, for example), so it doesn't get locked out of the application.


<livewire:settings.delete-user-form />
@if (
! auth()->user() instanceof \Illuminate\Contracts\Auth\MustVerifyEmail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this whole if statement a computed property perhaps?

<flux:input wire:model="email" :label="__('Email')" type="email" required autocomplete="email" />

@if (auth()->user() instanceof \Illuminate\Contracts\Auth\MustVerifyEmail &&! auth()->user()->hasVerifiedEmail())
@if (auth()->user() instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! auth()->user()->hasVerifiedEmail())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be a computer property for clarity?

@WendellAdriel WendellAdriel force-pushed the feat/skip-verified-email-update branch from aaa76f9 to 055a986 Compare January 14, 2026 16:54
@joetannenbaum joetannenbaum merged commit a0848ee into main Jan 14, 2026
4 checks passed
@WendellAdriel WendellAdriel deleted the feat/skip-verified-email-update branch January 14, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants