naturerobots / HSOS-SEP-PlantMap-2022

PlantMap Digital Logbook: A tool to support sustainable micro farming :link: https://naturerobots.github.io/HSOS-SEP-PlantMap-2022/
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

User object must be extended #169

Closed dobro929 closed 2 years ago

dobro929 commented 2 years ago

We receive other information about the user from the registration process, we should also store this information. For example, I would suggest that we send this json to the register endpoint.

{
   "username":"exampleUser",
   "password":"examplePassword",
   "lastname":"exampleName",
   "firstname":"exampleName"
}
lsiebels commented 2 years ago

Is the personal address really necessary? And if so, what added value does it have?

{
   "username":"exampleUser",
   "password":"examplePassword",
   "lastname":"exampleName",
   "firstname":"exampleName",
-  "street":"exampleStreet",
-  "number":"1234",
-  "city":"exampleCity",
-  "postalcode":"1234"
}
dobro929 commented 2 years ago

⚠️ To be able to describe this accurately, we first need more information about the registration process.

dobro929 commented 2 years ago

From the discussion about the registration process, it has emerged that we can create a user without a company and garden. For creating a company and a garden I have created a separate issue #172.