Skip to content

fix: unlinking an identity should respect the autoconfirm behaviour - #2682

Merged
fadymak merged 1 commit into
masterfrom
fm/auth-1428
Aug 10, 2026
Merged

fix: unlinking an identity should respect the autoconfirm behaviour#2682
fadymak merged 1 commit into
masterfrom
fm/auth-1428

Conversation

@fadymak

@fadymak fadymak commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Currently, when an identity is unlinked, if the identity being promoted to the new user.email is unverified, the user.email_confirmed_at field will be cleared. This is the correct behaviour, however, it does not respect the project's Mailer.Autoconfirm behaviour.

This PR respects the autoconfirm configuration and only clears email_confirmed_at when the promoted identity's email is unverified and autoconfirm is off

@fadymak
fadymak requested a review from a team as a code owner August 6, 2026 15:09
@fadymak
fadymak merged commit 83df1d9 into master Aug 10, 2026
13 checks passed
@fadymak
fadymak deleted the fm/auth-1428 branch August 10, 2026 10:05
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