summaryrefslogtreecommitdiff
path: root/login.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-06-16 16:28:24 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-06-16 16:28:24 +0800
commit01894c3e6e7f3e0fb653bfccf54e511b4473cce1 (patch)
treef8ed31ea38d51c86f4f63b02d909a422baf9253d /login.h
parentd487d9b6d9961929f274ffc1ac9bb393923299bd (diff)
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.
Diffstat (limited to 'login.h')
-rw-r--r--login.h2
1 files changed, 1 insertions, 1 deletions
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");
}