From 01894c3e6e7f3e0fb653bfccf54e511b4473cce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 16 Jun 2023 16:28:24 +0800 Subject: Fix the login after struct body was replaced mv_verify with a NULL value (i.e. at logging, not registration) would terminate the POST body construction loop. Simply moving the pair to the end should be a safe solution. --- login.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'login.h') diff --git a/login.h b/login.h index 19f83ea..3faa3e9 100644 --- a/login.h +++ b/login.h @@ -12,11 +12,11 @@ static inline void login(const char *username, const char *password, request(handler, callback, (const char *[][2]){ "mv_username", username, "mv_password", password, - "mv_verify", verify, "mv_click", click, "mv_nextpage", nextpage, "mv_successpage", successpage, "mv_failpage", failpage, + "mv_verify", verify, NULL }, "%s", "process"); } -- cgit v1.2.3