augustin-wien / augustina-backend

An open-source web shop designed for selling magazines on the street.
GNU Affero General Public License v3.0
7 stars 0 forks source link

Check license id and return first name #48

Closed lebe1 closed 1 year ago

lebe1 commented 1 year ago

Type of change

Description

Returns first name just as a string, not in JSON. A little unsure about if this might be a bit too much inconsistency and only ID i.e. ints should be returned plain without being encased in JSON. This handler is there for the frontend to validate if the user license exists and add the first name to the landing page

Checklist:

nanu-c commented 1 year ago

I would argue, that it should at return a valid json like {name:"xyz"}