mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-11-08 15:04:49 +00:00
ChangeNameCurrentUser issued a bare UPDATE and ignored RowsAffected, so a stale session for a deleted user got 200 — inconsistent with the email/password handlers (which 404) and leaving the frontend's Users.NotFound mapping unreachable. - check RowsAffected and return ErrUsersNotFound (404) when no row matched - document the 404 in the swagger annotation - add TestChangeNameCurrentUser (success, missing user, invalid name) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>