The server can build and send the e-mail change confirmation link and the changed-address notice #283
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!283
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/65-email-change-mails"
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?
This adds
EmailChangeLinkSender, the mail side of the self-service e-mail change (epic #63). No endpoint calls it yet; #66 adds the endpoints.CreateConfirmationLinkAsyncbuilds<PublicBaseUrl>/confirm-email-change?userId=…&email=…&token=…. The token comes fromGenerateChangeEmailTokenAsyncand is Base64Url-encoded, and every value is escaped.ValidationExceptionthat namespublicBaseUrl/NINLIL_EMAIL_PUBLIC_BASE_URL.SendConfirmationAsyncmails the link to the new address.SendChangedNoticeAsynctells the old address which new address was set and to contact an administrator. Every interpolated value is HTML-encoded.PasswordResetLinkSender. No API change.Tests:
EmailChangeLinkSenderTests. The link round-trips throughUserManager.ChangeEmailAsync, and a forged Host header leaves it unchanged. A missing base URL is refused, both mails go to the right recipients, and HTML is encoded.Ninlil.Web.Testsproject passes 2043 tests.MailboxAddress.Parserejects CR/LF in recipients).Closes #65
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Ghost referenced this pull request2026-11-05 05:11:42 -05:00