Fossil SCM
minor cleanup to that last commit.
Commit
0d6b73f07d538c81ffeb7faa6eb3d8a98f78e775
Parent
7e25293c5e72a07…
1 file changed
+1
-3
+1
-3
| --- src/json_user.c | ||
| +++ src/json_user.c | ||
| @@ -407,13 +407,11 @@ | ||
| 407 | 407 | if(str){ cson_object_set(u, LK, json_new_string(str)); } (void)0 |
| 408 | 408 | PROP("password"); |
| 409 | 409 | PROP("info"); |
| 410 | 410 | PROP("capabilities"); |
| 411 | 411 | #undef PROP |
| 412 | - if(g.isHTTP){ | |
| 413 | - tmpV = json_req_payload_get("name"); | |
| 414 | - } | |
| 412 | + tmpV = json_req_payload_get("name"); | |
| 415 | 413 | if(!tmpV && !g.isHTTP){ |
| 416 | 414 | /* only do this in CLI mode, to avoid the fossil-internal "name" |
| 417 | 415 | param from become a user's name. Been there, done that |
| 418 | 416 | (renamed my account to "user/save"). |
| 419 | 417 | */ |
| 420 | 418 |
| --- src/json_user.c | |
| +++ src/json_user.c | |
| @@ -407,13 +407,11 @@ | |
| 407 | if(str){ cson_object_set(u, LK, json_new_string(str)); } (void)0 |
| 408 | PROP("password"); |
| 409 | PROP("info"); |
| 410 | PROP("capabilities"); |
| 411 | #undef PROP |
| 412 | if(g.isHTTP){ |
| 413 | tmpV = json_req_payload_get("name"); |
| 414 | } |
| 415 | if(!tmpV && !g.isHTTP){ |
| 416 | /* only do this in CLI mode, to avoid the fossil-internal "name" |
| 417 | param from become a user's name. Been there, done that |
| 418 | (renamed my account to "user/save"). |
| 419 | */ |
| 420 |
| --- src/json_user.c | |
| +++ src/json_user.c | |
| @@ -407,13 +407,11 @@ | |
| 407 | if(str){ cson_object_set(u, LK, json_new_string(str)); } (void)0 |
| 408 | PROP("password"); |
| 409 | PROP("info"); |
| 410 | PROP("capabilities"); |
| 411 | #undef PROP |
| 412 | tmpV = json_req_payload_get("name"); |
| 413 | if(!tmpV && !g.isHTTP){ |
| 414 | /* only do this in CLI mode, to avoid the fossil-internal "name" |
| 415 | param from become a user's name. Been there, done that |
| 416 | (renamed my account to "user/save"). |
| 417 | */ |
| 418 |