api: Remove encoding of string in update_user endpoint.

* Remove unnecessary json_validator for full_name parameter.
* Update frontend to pass the right parameter.
* Update documentation and note the change.

Fixes #18409.
This commit is contained in:
Gaurav Pandey
2021-10-16 23:22:57 +05:30
committed by Tim Abbott
parent 37d977f8f1
commit 1c1a1e2cad
7 changed files with 23 additions and 17 deletions

View File

@@ -574,7 +574,7 @@ function handle_human_form(tbody, status_field) {
const url = "/json/users/" + encodeURIComponent(user_id);
const data = {
full_name: JSON.stringify(full_name.val()),
full_name: full_name.val(),
role: JSON.stringify(role),
profile_data: JSON.stringify(profile_data),
};