1 Commits
Author SHA1 Message Date
mvdbeek bfe93c18f6 Gate email and display name changes on the account settings
PUT /api/users/{user_id} let a non-admin change their email and display
name while enable_account_interface is false, which the legacy
information/inputs endpoint refuses. Both fields now go through the same
gate, and every UserUpdatePayload field has to be listed as either gated
or exempt, so a new field cannot skip it unnoticed.

Under use_remote_user or disable_local_accounts the email is what the
proxy or identity provider resolves the account by, so
UserManager.update_email no longer lets a non-admin choose it. OIDC
profile sync writes the address the identity provider asserts and marks
the call with asserted_by_identity_provider to bypass the check.
2026-09-28 20:35:01 +02:00