users: Add API endpoint to update_user_backend by real email.

The old endpoint for updating a user worked only via user id. Now we add
a different entry to this functionality, fetching the user by
.delivery_email.

update_user_backend becomes the main function handling all the logic,
invoked by the two endpoints.
This commit is contained in:
Mateusz Mandera
2024-09-05 01:51:50 +02:00
committed by Tim Abbott
parent 389b851f81
commit 77e7a2d30f
7 changed files with 232 additions and 62 deletions

View File

@@ -66,6 +66,7 @@
* [Get all users](/api/get-users)
* [Create a user](/api/create-user)
* [Update a user](/api/update-user)
* [Update a user by email](/api/update-user-by-email)
* [Deactivate a user](/api/deactivate-user)
* [Deactivate own user](/api/deactivate-own-user)
* [Reactivate a user](/api/reactivate-user)