ispyb / py-ispyb

ISPyB backend server based on FastAPI
GNU Lesser General Public License v3.0
12 stars 14 forks source link

Fix current user route when no famillyName #235

Closed mgaonach closed 1 year ago

mgaonach commented 1 year ago

The route for /user/current returns information about the user currently identified by the token.

In the response model, familyName and givenName are mandatory but it is not in the DB, and some accounts like proposal and operator accounts do not have it. Should be optional fields.

login could also be added, and would be mandatory.