Files
nahodka-back/src/main/java/com/krylov/refound/dto/user
SlimusMinus 477737c161 Hide private profile data and reissue tokens when users change their login
- GET /api/v1/users/{id} returns email and phone only to the user themself
  and to admins.
- When a user changes their own login, the PUT response carries a new token
  pair (login is the JWT subject, so the old tokens stop matching); old
  refresh tokens fail on their own because the stored login differs.
- The old avatar is deleted only after the profile is saved; login length is
  checked against the column size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 01:32:13 +03:00
..
2026-09-23 23:34:05 +03:00
2026-09-23 23:34:05 +03:00
2026-09-23 23:34:05 +03:00