diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-22 10:11:10 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-22 10:11:10 +0800 |
commit | 1f24bef71ff1087fab2bffb156314213f42ac962 (patch) | |
tree | 3b9646f3ed04f9dec25057781fb7c4b3810f6f31 /member.c | |
parent | 4e78c9596b8ea129952b669b091d1cde09a459dd (diff) |
Add handler to setaccount, & simplify member data
Diffstat (limited to 'member.c')
-rw-r--r-- | member.c | 36 |
1 files changed, 17 insertions, 19 deletions
@@ -24,26 +24,24 @@ void interchange_member_account(void (*handler)(interchange_response *)) request(handler, NULL, NULL, "%s", "member/account"); } -void interchange_member_setaccount(const char *fname, const char *lname, - const char *address1, const char *address2, const char *city, - const char *state, const char *zip, const char *email, - const char *phone_day) +void interchange_member_setaccount(const struct interchange_member *member, + void (*handler)(interchange_response *)) { - request(NULL, NULL, &(struct body){ 13, { - { "mv_form_profile", "account_change" }, - { "mv_todo", "return" }, - { "mv_nextpage", "member/account" }, - { "mv_check", "Save_database" }, - { "fname", fname }, - { "lname", lname }, - { "address1", address1 }, - { "address2", address2 }, - { "city", city }, - { "state", state }, - { "zip", zip }, - { "email", email }, - { "phone_day", phone_day } - }}, "%s", "process"); + request(handler, NULL, &(struct body){ 13, { + { "mv_form_profile", "account_change" }, + { "mv_todo", "return" }, + { "mv_nextpage", "member/account" }, + { "mv_check", "Save_database" }, + { "fname", member->fname }, + { "lname", member->lname }, + { "address1", member->address1 }, + { "address2", member->address2 }, + { "city", member->city }, + { "state", member->state }, + { "zip", member->zip }, + { "email", member->email }, + { "phone_day", member->phone_day } + }}, "%s", "process"); } void interchange_member_changepassword(const char *password_old, const char *password, const char *verify) |