From 21123c8d637eda66ecd6e7e54fa4e452dadae4a6 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 23 Apr 2020 03:10:33 +1000 Subject: If the validation changed things, reload the input form. --- src/sledjchisl/sledjchisl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sledjchisl/sledjchisl.c') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 3677601..59624b4 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -5541,9 +5541,11 @@ void account_html(char *file, reqData *Rd, HTMLfile *thisFile) } } doit = Rd->doit; + form = Rd->form; } - // Submit the data. + // Submit the data. Reload input form and sub in case things got changed by the validation functions. + iF = accountPages->get(accountPages, Rd->form, NULL, false); sub = iF->subs->get(iF->subs, Rd->doit, NULL, false); //if (strcmp("POST", Rd->Method) == 0) // Not such a good idea, since we are faking a submit for account validation, which is a GET. { -- cgit v1.1