Closed pret3nti0u5 closed 2 years ago
@pret3nti0u5 name
is not the correct field. It should be default_group
, just that FOSSology do not expose it.
It was proposed in API v2 here: https://github.com/Shruti3004/FOSSology-REST-API/pull/8
Can you create a PR from it to FOSSology? We can merge it there to make v1
work.
@GMishx I'll get on that, do you want me to close the PR here?
That will make sense.
Description
Changed key of setLocalStorage() in getUserSelf() from res.default_group to res.name as key default_group is no longer included in the response from endpoint /api/v1/users/self. Changing to res.name fixed the issue.
Changes
Changed key from res.default_group to res.name
How to test
Login using FossologyUI
Closes #198