The API lets a signed-in user change their own e-mail address, at once or after confirming a link #66
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
Depends on
#67 The OpenAPI snapshot and Angular API client include the self-service e-mail change
lantea-one/ninlil
Reference
lantea-one/ninlil#66
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.
What changes
POST /api/users/me/email(UsersController,[Authorize]), body{ newEmail, currentPassword }:PasswordMismatch, asChangeMyPassworddoes. An invalid or taken address gives 400 with Identity's error.EmailSenderOptions.SmtpHost) andPublicBaseUrlmust be configured, otherwise 400 naming what is missing (as the administrator's e-mailed reset does,UsersController.cs:517-530). It sends the link (#65) and returns 202 with{ confirmationSent: true }. Nothing on the account changes yet.UserAccountChangedEventis published, the notice goes to the old address when SMTP is configured, and the response is 200 with the profile.POST /api/auth/confirm-email-change(anonymous, inAuthControllernext toResetPassword, with the same rate limiting), body{ userId, email, token }:UserManager.ChangeEmailAsync(which setsEmailConfirmedand the security stamp, so every session ends), then the event and the notice to the old address. A bad or expired token gives 400 without saying whether the user exists.UserProfileDetail(GET /api/users/me) gainsemailChangeRequiresConfirmation, so the console can say what will happen before the user submits./api/identity-settingsGET and PATCH gainrequireEmailChangeConfirmation, written throughPresetConfigurationFileApplierlike the controller's other sections (IdentitySettingsController.cs:64,71).PatchMinekeeps ignoringemail; its summary points at the new action. Update the class summary atUsersController.cs:31-40.Acceptance
EmailConfirmedare set, the old address got the notice, and an old access token gets 401./api/identity-settings{"requireEmailChangeConfirmation":false}then GET returns false; 403 without the write permission.dotnet test src/dotnet/tests/Ninlil.Web.Testspasses exceptOpenApiSnapshotTests(#67, same PR);src/dotnet/tests/Ninlil.Dns.Server.ClusterSync.Testspasses.Source
#63.
Owner decisions 2026-10-31, round 2: Q-BUG-15, Q-BUG-16, R2-EMAIL-SIGNOUT.
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 04:42:55 -05:00
Ghost referenced this issue2026-11-05 04:42:55 -05:00
Ghost referenced this issue2026-11-05 05:10:40 -05:00
Ghost referenced this issue2026-11-05 05:11:42 -05:00