From d000e75ab0c20b266e90deec437e02329210db11 Mon Sep 17 00:00:00 2001 From: curly Date: Wed, 17 Jul 2024 14:27:34 -0600 Subject: separate user update forms. require password for deletion --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index eafa655..0e45485 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ - JSON `"Not Authenticated"` - POST `/user/delete` - Request - - JSON `{"id": "ID", "session": "SESSION_KEY"}` + - JSON `{"id": "ID", "session": "SESSION_KEY", "password": "PASSWORD"}` - Response - 200 Ok - JSON `"Deleted"` @@ -90,12 +90,15 @@ - 200 Ok - 500 Internal Server Error - JSON `"Could not complete transaction"` -- POST `/user/update/info` +- POST `/user/update/password` - Request - - JSON `{"id": "ID", "session": "SESSION_KEY", "name": "USERNAME", "old_password": "PASSWORD", "new_password": "PASSWORD"}` + - JSON `{"id": "ID", "session": "SESSION_KEY", "old_password": "PASSWORD", "new_password": "PASSWORD"}` + - Response + - 200 Ok + - 500 Internal Server Error` +- POST `/user/update/name` + - Request + - JSON `{"id": "ID", "session": "SESSION_KEY", "name": "USERNAME"}` - Response - 200 Ok - - 401 Unauthorized - - JSON `"Not Authenticated"` - - 400 Bad Request - 500 Internal Server Error` \ No newline at end of file -- cgit v1.2.3