Epic: users change their own e-mail address on the profile page, with confirmation by link when the administrator requires it #63
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#63
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
GET/PATCH /api/users/meexpose a read-only e-mail address (src/dotnet/src/Ninlil.Web/Controllers/UsersController.cs:32-35,358-410); the PATCH ignoresemail(UserProfileControllerTests.cs:199). The owner wants self-service, governed by a new global setting "require e-mail confirmation": on, a link goes to the new address and the change applies when it is opened; off, the change applies at once.What changes
Children, in order:
/api/identity-settings.Rules that hold across the children:
ChangeMyPassworddoes and for the same reason (UsersController.cs:36-37): the address receives password-reset links and e-mail two-factor codes, so a stolen session must not be able to redirect them.RequireUniqueEmailis on,src/dotnet/src/Ninlil.Dns.Identity/Extension/ServiceCollectionIdentityExtension.cs:67).TwoFactorController.cs:86,277). The confirmation path setsEmailConfirmed; the immediate path keeps the confirmed state the administrator's change inUsersController.Update(:205) leaves, so the two paths that skip confirmation behave alike. README says that with confirmation off a mistyped address can cut off e-mail two-factor codes.UserAccountChangedEvent, as every account change does.Acceptance
Source
UsersController.cs:27-40,358-410;UserProfileControllerTests.cs:199.Owner decision 2026-10-31 (Q-BUG-13): "self-service on the profile page; a new global setting
'require e-mail confirmation': on = link to the new address, applies on confirm; off = applies at once".
Owner decisions 2026-10-31, round 2: Q-BUG-15 "default on"; Q-BUG-16 "notify the old address"; R2-EMAIL-SIGNOUT "e-mail change signs out all sessions".
Ghost referenced this issue2026-11-05 04:11:31 -05:00
Ghost referenced this issue2026-11-05 04:25:57 -05:00
Ghost referenced this issue2026-11-05 05:10:40 -05:00
All children merged into develop: #64 (PR #282), #65 (PR #283), #66, #67 and #68 (PR #286). The README Security section describes the flow, the setting
NINLIL_IDENTITY_EMAIL_CHANGE_REQUIRE_CONFIRMATIONand its default (on). Follow-ups: #284, #285.