aboutsummaryrefslogtreecommitdiff
path: root/server/controllers/user.js
Commit message (Collapse)AuthorAgeFilesLines
* Added status codes to more API endpoints.Mateja2021-07-291-3/+3
| | | | | This should fix login bug on client where it sets empty token when bad password is provided.
* Return status 400 when failing to register user.Mateja2021-07-241-1/+1
|
* Return token on registration, return admin status on login, 404 on userMateja2021-07-241-2/+9
| | | | not found.
* Implemented JWT authentication using Passport.jsMateja2021-07-101-0/+47