From 78a0ef5232856b1687bd791f67481714dcbf8ba3 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 18 May 2020 14:55:19 +1000 Subject: Comments += --- src/sledjchisl/sledjchisl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index f34d1a6..3cd22e4 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -5327,6 +5327,7 @@ static int accountCreateSub(reqData *Rd, inputForm *iF, inputValue *iV) Rd->stuff->putstr(Rd->stuff, "passHash", h); Rd->stuff->putstr(Rd->stuff, "passSalt", salt); if (NULL != Rd->shs.name) free(Rd->shs.name); + // So that we can get the name later when we show the account data entry page via GET. Rd->shs.name = Rd->stuff->getstr(Rd->stuff, "name", true); free(h); Rd->shs.status = SHS_REFRESH; @@ -5386,6 +5387,7 @@ static int accountAddSub(reqData *Rd, inputForm *iF, inputValue *iV) static int accountSaveSub(reqData *Rd, inputForm *iF, inputValue *iV) { int ret = 0; + // Using body[user] here, coz we got to this page via a URL query. char *uuid = Rd->shs.UUID, *first = getStrH(Rd->body, "user"), *last = NULL; int c = accountRead(Rd, NULL, first, last); -- cgit v1.1