Stefan-5422
1a6c780de5
[create-pull-request] push formatted files
2022-06-07 18:22:55 +00:00
Laurin
0b7756d428
small fixes
2022-06-06 19:31:54 +02:00
Laurin
d0a1d4a2f1
small fixes
2022-06-05 21:08:22 +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
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