implement user information in user name
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user