Fossil

Diff
Login

Differences From Artifact [581e59986b]:

To Artifact [1022705842]:


397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
397
398
399
400
401
402
403

404
405
406
407
408
409
410







-







** Impl of /json/user/save.
*/
static cson_value * json_user_save(){
  /* try to get user info from GET/CLI args and construct
     a JSON form of it... */
  cson_object * u = cson_new_object();
  char const * str = NULL;
  cson_value * tmpV = NULL;
  char b = -1;
  int i = -1;
  int uid = -1;
  cson_value * payload = NULL;
#define PROP(LK,SK) str = json_find_option_cstr(LK,NULL,SK);     \
  if(str){ cson_object_set(u, LK, json_new_string(str)); } (void)0
  PROP("name","n");