Skip to content
Snippets Groups Projects
Commit 1261c609 authored by JerichoFletcher's avatar JerichoFletcher
Browse files

fix: session vars not updated after editing profile

parent f019e9e7
No related merge requests found
......@@ -169,6 +169,9 @@ class UserService extends Service
$profilePicturePath = saveFile($_FILES['profile_picture'], Application::$BASE_DIR . '/public/assets/users/');
}
$this->userRepository->updateUser((int)$updateData['user_id'], $updateData['username'], $updateData['email'], $updateData['first_name'], $updateData['last_name'], $profilePicturePath);
$newProfile = $this->userRepository->getUserById($updateData['user_id']);
$this->setSession($newProfile);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment