thevahidal / soul

🕉 A SQLite REST and realtime server

Home Page:https://thevahidal.github.io/soul/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow Passing Optional Fields for the `_users` Table

AbegaM opened this issue · comments

Is your feature request related to a problem? Please describe.

Currently when users send a request to the POST /api/tables/_users/rows API, we are only extracting the username and the password fields for this request. Ideally, we need to accept some optional fields like email, age, dateOfBirth, and etc.

Describe the solution you'd like

We need to modify the registerUser middleware function at src/controllers/auth/user.js to extract and save the optional fields.
Screen Shot 2024-04-23 at 4 20 39 PM