Commit Graph
95 Commits
Author SHA1 Message Date
Stephan d688a7db9c HOTFIX: Name of uuid function
The prisma schema didn't compile with the previous schema
2022-04-28 13:00:27 +02:00
Stephan f6d194f0c9 Fix: The server should always return 403 on failed login 2022-04-28 13:00:14 +02:00
Stefan-5422 32d4bdf3e0 Minor changes 2022-04-28 13:00:14 +02:00
Stefan-5422 dd956476d7 Minor changes
Fixed complaints for PR #30
2022-04-28 12:57:15 +02:00
Stefan-5422 f94f89e99e Update common.ts types because nagging. 2022-04-28 12:57:15 +02:00
Stefan-5422 269cc33a33 Update Event Endpoints to give better errors; 2022-04-28 12:57:15 +02:00
Laurin 293d2753eb Adding VisualElement (v.2.1) 2022-04-28 12:55:50 +02:00
Laurin 79e40e8369 updating Role model (v.2.0) 2022-04-28 12:49:07 +02:00
github-actions[bot]andStefan-5422 4a57f75997 [create-pull-request] push formatted files (#27)
Co-authored-by: Stefan-5422 <[email protected]>
2022-04-28 12:49:07 +02:00
Stefan-5422 035eb8771c Fix json parser return stack trace see Issue #24; 2022-04-28 12:49:07 +02:00
Stephan 5418d7b790 Refactor the endpoints to share common code 2022-04-28 12:49:07 +02:00
Stephan 0fb8a9ca73 Update the admin revision on password change
+ Update type of revision to DateTime
2022-04-28 12:49:07 +02:00
Stephan f3c165bbd7 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-04-28 12:49:07 +02:00
Stephan ff9d5b7912 Change the controller for changing passwords to use PIDs and not usernames 2022-04-28 12:49:07 +02:00
Stephan 94ce50aaf1 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)
2022-04-28 12:49:07 +02:00
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 579dc68d82 Remove event <-> admin association and introduce a default value for revision 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
Stephan 22a959bcea FIX: The dev script can now run in any directory
Initially, the directory was required to be called 'server'; This is not the case anymore
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 893f351e28 Update Dockerfile to include templates in the server; 2022-03-20 14:28:01 +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
Stephan 2a5e631d1f Fix bug where nodemon restarts multiple times
- Nodemon was watching the whole file system and not only the /app directory
2021-12-03 10:21:43 +01:00
Stephan a138bca256 Fix quotes 2021-12-03 10:21:43 +01:00
Stephan 2b061c5f65 Add a docker dev environment that starts a container without building the image
+ Add dev.sh script to start the dev environment
+ Add generated flags to the .gitignore file
2021-12-03 10:21:43 +01:00
Stephan 6b6ca57639 Add submodule for email templates 2021-11-30 10:38: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
Stefan 36ddf78fc9 FIX: Issue with docker network
Issue with docker-compose caused server to refuse to build on Server due to not being able to download from the Internet.
Might need to be reviewed at a later point
2021-11-17 21:27:20 +01:00
Stefan 7553364313 fixed my fix
I'm to stupid to write container_name
2021-11-17 16:09:57 +01:00
Stefan ae4ceb8d85 Fix: added Container name to redis 2021-11-17 16:01:59 +01:00
Stephan 278bfcdea8 Merge pull request #18 from detleph/feature-user-auth
Add user authentication
2021-11-17 15:45:10 +01:00
github-actions[bot] fcde6f2222 [create-pull-request] push formatted files (#19) 2021-11-17 15:39:04 +01:00
Stefan 62d468c7a5 Merge branch 'dev' into feature-user-auth 2021-11-17 15:36:09 +01:00
Stephan 8f85f062d7 HOTFIX: Add ending slash to copy commands 2021-11-15 08:48:37 +01:00
Stephan 3eb8e8bbbc Merge pull request #17 from detleph/feature-dockerize
Dockerize the server
2021-11-15 08:46:09 +01:00
Stephan c53e325f06 Change layer order (make caching more effecient) 2021-11-15 08:41:18 +01:00
Stephan 5a62d156ae Add defaults for some environment variables
+ Remove port bindings for the 'postgres' service
2021-11-12 11:55:38 +01:00
Stephan 1cdbddf753 Dockerize the server
+ Add Dockerfile
+ Update 'server' docker-compose service
2021-11-12 10:18:13 +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