summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interchange/member.h2
-rw-r--r--member.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/interchange/member.h b/interchange/member.h
index a8d5262..e4aad8d 100644
--- a/interchange/member.h
+++ b/interchange/member.h
@@ -64,7 +64,7 @@ extern "C" {
#endif
void interchange_member_newaccount(const char *username, const char *password,
- const char *verify, const char *failpage,
+ const char *verify, const char *nextpage, const char *failpage,
void (*handler)(interchange_response *),
void (*callback)(struct interchange_member *));
void interchange_member_login(const char *username, const char *password,
diff --git a/member.c b/member.c
index 8a6dbc8..228ebc4 100644
--- a/member.c
+++ b/member.c
@@ -3,11 +3,12 @@
#include "interchange/member.h"
void interchange_member_newaccount(const char *username, const char *password,
- const char *verify, const char *failpage,
+ const char *verify, const char *nextpage, const char *failpage,
void (*handler)(interchange_response *),
void (*callback)(struct interchange_member *))
{
- login(username, password, verify, "NewAccount", NULL, failpage, handler,
+ login(username, password, verify, "NewAccount",
+ nextpage ? nextpage : "new_account", failpage, handler,
(void (*)(void *))callback);
}