- Renamed the internal param error var to
internal_paramExtracting_error
- Added URL decoding at
routeUtils.withParams
- Added a config to change error responses kind: if
logicInApi
the response will be a JSON - Fixed compiling error
- Fixed GET request fake error at
routeUtils.withParams
- Added option to merge path parameters at
routeUtils.withParams
- Added
GET /api/resend/{kind}
- Added a requirement to specify the user password at user verification
- Fixed login password hashing
- Fixed corrupted session trick
- Changed user activation to a code
- API response is now a object,
ResponseKind
- Added string values to
UserRank
andResponseKind
enum - Fixed
db/utils.getFromDb
- Hash user password
- Sending (not sending, just printing) activation email when new user was created
- Added
POST /api/activate
to activate account - Fixed ident hash generation and checking
- Fixed error whe session is broken
- Separated all routes to a individual file (Fix #3)
- Removed some debug
echo
s - Moved route utils to parent dir. The
routes
dir can have only routes
- Added salt and ident generation
- Added ident check
- Added salt to user db
- Removed salt and password from data sended to admin in
/api/admin/getUser
route - Use
delInternals
inuser.toJson
to avoid repeat
- Moved env getting to
restSpa/config.nim
- Added option to change all urls to
https
- Added email sending (untested)
- Added activate mail template
- Added an error when no fields to edit was provided at
POST /api/admin/editUser
route - Added
POST /api/delUser
route to delete the logged user - Renamed module
restSpa/routes/api/auth.nim
touser.nim
- Added
POST /api/admin/delUser
to delete any user (admin) - Refactored login route using newly added abstractions
- Removed the full user sending in sign up
- Added
POST logOut route
- Removed
debugEcho
fromdelInternals
- Moved the blacklisted editing fields of
User
to restSpa/db/models/user.nim just to be able to see in docs
- Added
editUser
admin route to edit any user data - Added
deleteUser
admin a route to delete any user - Fixed urlencoded api handling
- Added to
ifContains
support to check if have all fields or at least one - Removed route
setRank
becauseeditUser
can do it - Added
updateFields
to update a object giving a JSON node, supports blacklist fields - Changed
doAssert
to justassert
inforceHttpMethod
because it just need to check in development - Added
delInternals
func to delete all DB internal values from JSON node - Added
withUser
to abstract the user getting from request - Added
getUsing
to get some DB row using a specific value/column - Moved all error messages from utils.nim
- Updated docs
- Updated readme
- Fixed db env config getting
- Added
getUser
admin route to get all user data - Added min rank verification
- Automatically creates the admin
- Fixed
ifContains
error formatting - Added
registerIp
andlastLoginIp
toUser
- Added
registerDate
andlastLoginDate
toUser
- Fixed user rank
- Added
setRank
to admin privilege routes in API - Fixed
withParams
calling - Added to utils
getSession
- Tries to get a session valueifLogin
- Runs the code if user have loginifRank
- Runs the code if user have correct rank
- Added user rank
- Added docs
- Added rolling and error file logging (can config in .env)
- Added auto support to forms and
application/x-www-form-urlencoded
body format and seamless integration usingctx.withParams:
- Fixed routes names
- Added compile-time option to disable form auto parsing
- Added custom 404 page
- Added session based login
- Replaced helloWorld to home route
- Using the prologue env parser instead of dotenv module
- Added more .env configs
- Added debug logging
- Added API
- Added register route
- Added utilities
- DB
- Added db connection
- Added user model
- Added setup
- added Hello world route
- Added routes file
- Added env loader in
configs.nim
- Init
- Added hello world in prologue
- Added .env file
- Added readme and config.nims
- Added binPath in nimble