diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-06-16 16:28:24 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-06-16 16:28:24 +0800 |
commit | 01894c3e6e7f3e0fb653bfccf54e511b4473cce1 (patch) | |
tree | f8ed31ea38d51c86f4f63b02d909a422baf9253d /login.h | |
parent | d487d9b6d9961929f274ffc1ac9bb393923299bd (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |