Commit Graph
29 Commits
Author SHA1 Message Date
Stephan a2e314f036 Add the permission_level 'ELEVATED' to the default user 2022-04-28 12:49:07 +02:00
Stephan ed90f1e6ae Allow for groups to be specified when POSTing /api/admins
+ Add the admin router to the global app
2022-04-28 12:49:07 +02:00
Stephan c0878d5614 Add code that ensures that an (admin) user is always present 2022-04-28 12:49:07 +02:00
Stephan dd3133c3f3 Add router for the /admin endpoint 2022-04-28 12:49:07 +02:00
Stephan 84db24fdb4 Add controller for adding a user
+ Add function to narrow type of string to AdminLevel
2022-04-28 12:49:07 +02:00
Stephan 79c5c3752c Extract code for error messages for better reusability
+ Create function for generating permission errors
2022-04-28 12:49:07 +02:00
Stephan fdfbd22daf Add a controller for getting all admin user details
+ Requires Authentication
2022-04-28 12:49:07 +02:00
Stephan 5e5b6bb60c Add routes for admin authentication endpoints
+ Add router to the app
2022-04-28 12:49:07 +02:00
Stefan-5422 62a5daa432 Add Endpoint to verify email codes 2022-04-25 08:57:32 +02:00
Stefan-5422 c96537f5b4 Add handlebars; 2022-03-20 14:58:27 +01:00
Stefan-5422 a84fcdce8f Fix fix bugs in the mail & mjml library files; 2022-03-20 14:28:52 +01:00
Stefan-5422 b4528f3d53 - Added Code to get template by name
- Sending mail with compiled template to target
2021-12-13 13:17:31 +01:00
Stefan-5422 db9ea4b36a Added compile code for mail templates 2021-12-11 14:04:51 +01:00
Stefan 01ba2bd0c0 FIX: Due to changes in Prisma schema tests broke
Added property description broke stuff :-(
2021-11-17 21:36:06 +01:00
Stephan 6c535b16d1 Bugfix authentication controller 2021-11-11 12:02:48 +01:00
Stephan 4fd8a4c978 Add reference to custom Request typings 2021-11-11 11:57:36 +01:00
Stephan 60f7c8fff5 Export requireAuthentication 2021-11-10 16:12:55 +01:00
Stephan c869863aea Add middleware to require authentication on an endpoint 2021-11-10 16:04:26 +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 bc88ea3fe0 Merge branch 'dev' into feature-user-auth 2021-11-10 08:41:02 +01:00
Stephan 6d062ce1d7 Merge main with fix into dev 2021-11-10 08:38:30 +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
Stephan f2e18e1656 Fix the error where the code doesn't compile
TypeScript is not used for browser development here, hence it does not know the type XMLHttpRequest (used by SuperAgent)
This is not an ideal solution
2021-11-09 15:40:38 +01:00
StephanandStefan d596670f6b Add mail functionality into the development branch (#12)
* Added basic code for sending emails
+ Added tests for emails
+ Modified README.md to reflect changes to .env file

* [create-pull-request] push formatted files

* Added dkim

* Fixed mistake in docker-compose.yml

Co-authored-by: Stefan <[email protected]>
2021-11-03 11:01:37 +01:00
Stefan-5422 8d50c44b7e Added tests for the event endpoints
Also installed chai, chai http & mocha
2021-10-18 13:14:13 +02:00
Stefan-5422 a966bfffd9 Added Event Endpoints; Dotenv; npm Scripts
+ GET    /events/
+ POST /events/
2021-10-17 02:30:01 +02:00