TanmoySG / wunderDB

A micro JSON-based Data Store inspired by MongoDB.
http://wdb.tanmoysg.com/api/
Apache License 2.0
13 stars 0 forks source link

Fix how AddUser works #35

Closed TanmoySG closed 1 year ago

TanmoySG commented 1 year ago

Currently new users are added by passing the Username and Password as Basic Auth. Instead we need to be passed using POST body along with the hash algorithm.

POST /api/users
BODY

{
    "username" : <username-here>,
    "password" : <password-here>,
    "hashingAlgorithm" : "md5" or "sha256", // optional
}
TanmoySG commented 1 year ago

Fixed in https://github.com/TanmoySG/wunderDB/commit/25550208e1f9801946ec7e9d07c70b5c2760489c