Fossil SCM

minor cleanup to that last commit.

stephan 2012-03-17 02:03 trunk
Commit 0d6b73f07d538c81ffeb7faa6eb3d8a98f78e775
1 file changed +1 -3
+1 -3
--- src/json_user.c
+++ src/json_user.c
@@ -407,13 +407,11 @@
407407
if(str){ cson_object_set(u, LK, json_new_string(str)); } (void)0
408408
PROP("password");
409409
PROP("info");
410410
PROP("capabilities");
411411
#undef PROP
412
- if(g.isHTTP){
413
- tmpV = json_req_payload_get("name");
414
- }
412
+ tmpV = json_req_payload_get("name");
415413
if(!tmpV && !g.isHTTP){
416414
/* only do this in CLI mode, to avoid the fossil-internal "name"
417415
param from become a user's name. Been there, done that
418416
(renamed my account to "user/save").
419417
*/
420418
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button