Users change their own e-mail address on the profile page, confirmed by a link unless the administrator turns that off #286
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!286
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/66-self-service-email"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A signed-in user can now change their own e-mail address (epic #63). The change needs their current password. By default it needs confirmation by a link sent to the new address.
API (#66)
POST /api/users/me/email{newEmail, currentPassword}:{confirmationSent:true}when confirmation is required (the default). Nothing changes until the link is opened.EmailConfirmedis kept, as the administrator's change keeps it.POST /api/auth/confirm-email-change{userId, email, token}(anonymous): 204 on success. Any bad, expired or reused token, and any unknown or disabled user, gets the same 400.UserAccountChangedEventreplicates the change, and the old address gets a notice when SMTP is configured.GET /api/users/megainsemailChangeRequiresConfirmation./api/identity-settingsgainsrequireEmailChangeConfirmation.Snapshot and client (#67) are in separate commits.
Console (#68)
/confirm-email-changepage posts the link's values once.Tests:
EmailChangeSelfServiceTestsandEmailChangeSettingTests. They run on a second host, so the shared host's settings stay untouched.Follow-ups filed: #284 (wrong current passwords count toward lockout) and #285 (rate limit the anonymous token endpoints).
Closes #66
Closes #67
Closes #68
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Ghost referenced this pull request2026-11-05 05:11:42 -05:00