Commit Graph
125 Commits
Author SHA1 Message Date
Stephan 08e18db3c3 Extract common function to handle selecting organisations 2022-04-26 16:04:26 +02:00
Stephan ab62e39d8e Add function to create new organisations
+ Extract common functions from the admin controller
2022-04-26 16:04:26 +02:00
Stephan 37437152da Add the organisation controller
+ Add function to get all organisation
+ Add function to get a specific organisation
2022-04-26 16:04:26 +02:00
Stefan-5422 62a5daa432 Add Endpoint to verify email codes 2022-04-25 08:57:32 +02:00
Stephan d7e7694249 Fix: The server should always return 403 on failed login 2022-04-23 14:01:45 +02:00
Stefan-5422 43bb7baa88 Minor changes 2022-03-28 11:58:32 +02:00
Stefan-5422 68b9044a9d Minor changes
Fixed complaints for PR #30
2022-03-28 11:58:32 +02:00
Stefan-5422 0f3b1ac707 Update common.ts types because nagging. 2022-03-28 11:58:32 +02:00
Stefan-5422 cdacc56f7f Update Event Endpoints to give better errors; 2022-03-28 11:58:32 +02:00
Stephan 064497a4ca Refactor the endpoints to share common code 2022-01-02 17:36:21 +01:00
Stephan 08419d581b Update the admin revision on password change
+ Update type of revision to DateTime
2022-01-02 17:26:20 +01:00
Stephan 4d23eccba6 Restructure the process of changing a password
+ Requests are now dispatched to the according user ressource, not the collection
+ The current user can be referenced by setting the pid to 'current'
+ Refactored the error logic
2022-01-02 16:49:01 +01:00
Stephan cc1c394dce Change the controller for changing passwords to use PIDs and not usernames 2022-01-02 15:46:47 +01:00
Stephan 5b02905d71 Add a controller and router to update a user's password
+ Add a function to update the password internally
+ The current interface could be improved (made more RESTful)
2021-12-31 00:11:04 +01:00
Stephan 97fee47c6e Allow for groups to be specified when POSTing /api/admins
+ Add the admin router to the global app
2021-12-29 15:19:22 +01:00
Stephan b57315d916 Add controller for adding a user
+ Add function to narrow type of string to AdminLevel
2021-12-29 15:19:19 +01:00
Stephan b82a84322b Extract code for error messages for better reusability
+ Create function for generating permission errors
2021-12-29 15:19:18 +01:00
Stephan 59f4d53af5 Add a controller for getting all admin user details
+ Requires Authentication
2021-12-29 15:19:16 +01:00
Stephan 6c535b16d1 Bugfix authentication controller 2021-11-11 12:02:48 +01:00
Stephan 1b7a40cf7c Add the pid to the JWT payload 2021-11-10 15:11:29 +01:00
Stephan fc78f730bd Add redis
+ Add a public lib file for redis
  + Add an indexed auth client
  + Add a function to create promisified partial clients
+ Add password revisions to the auth redis index
2021-11-10 12:08:07 +01:00
Stephan 5ee5218d5a Use the description attribute in add and get controllers 2021-11-10 11:31:22 +01:00
Stephan aec6604d24 Update the code to use the latest database schema 2021-11-10 11:15:51 +01:00
Stephan 3d961ab53d Add controller for authenticating with admin name and password
+ Add function to create a JWT with the required payload
2021-11-10 08:19:17 +01:00
Stefan-5422 a966bfffd9 Added Event Endpoints; Dotenv; npm Scripts
+ GET    /events/
+ POST /events/
2021-10-17 02:30:01 +02:00