implement user information in user name

This commit is contained in:
root
2025-12-22 19:08:05 -05:00
parent 116f664e7e
commit d8fa85a4a8
3 changed files with 27 additions and 15 deletions

View File

@@ -27,7 +27,8 @@ class UserProfileController extends ControllerAbstract
{
$userId = $this->userIdentity->identifier();
$profile = $this->userService->fetchProfile($userId);
// Get profile with editability metadata
$profile = $this->userService->getEditableFields($userId);
return new JsonResponse($profile, JsonResponse::HTTP_OK);
}
@@ -57,8 +58,8 @@ class UserProfileController extends ControllerAbstract
// storeProfile automatically filters out provider-managed fields
$this->userService->storeProfile($userId, $data);
// Return updated profile
$updatedProfile = $this->userService->fetchProfile($userId);
// Return updated profile with metadata
$updatedProfile = $this->userService->getEditableFields($userId);
return new JsonResponse($updatedProfile, JsonResponse::HTTP_OK);
}