Ninlil sends a confirmation link to a new e-mail address and a notice to the old one #65
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.
Blocks
Reference
lantea-one/ninlil#65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
See #63. The only link mail today is the password reset (
src/dotnet/src/Ninlil.Web/Services/PasswordResetLinkSender.cs).What changes
src/dotnet/src/Ninlil.Web/Services/EmailChangeLinkSender.cs, shaped likePasswordResetLinkSender:CreateConfirmationLinkAsync(user, newEmail): a token fromUserManager.GenerateChangeEmailTokenAsync, Base64Url-encoded as the reset token is (:114-116), in a link<PublicBaseUrl>/confirm-email-change?userId=…&email=…&token=…with every value escaped. It refuses without a usablePublicBaseUrl(reuseTryParsePublicBaseUrl,:67; move it to a shared helper if both senders need it). The link is never built from the request's Host header (:22-24).SendConfirmationAsync: subject "Confirm your new Ninlil e-mail address", a short HTML body with the link and "if you did not ask for this, ignore this e-mail".SendChangedNoticeAsync(oldEmail, newEmail)(Q-BUG-16): subject "Your Ninlil e-mail address was changed", naming the new address and telling the reader to contact an administrator if they did not make the change.Program.csnext toPasswordResetLinkSender(:664).Acceptance
IEmailSender, red first: the link lies under the configured base URL, carries the escaped values and round-trips throughUserManager.ChangeEmailAsync; with a forged Host header the link is unchanged; without a base URL aValidationExceptionnames the setting.Source
#63;
PasswordResetLinkSender.cs.Owner decision 2026-10-31, round 2 (Q-BUG-16): "notify old address on change: yes".
Ghost referenced this issue2026-11-05 04:25:57 -05:00
Ghost referenced this issue2026-11-05 05:11:42 -05:00