thevahidal / soul

🕉 A SQLite REST and realtime server
https://thevahidal.github.io/soul/
MIT License
1.45k stars 49 forks source link

Allow Passing Optional Fields for the `_users` Table #180

Closed AbegaM closed 2 months ago

AbegaM commented 2 months ago

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