summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-27 08:30:31 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-27 08:30:31 +0800
commite175a798b247aae05f807b919d9cb1c50968ac42 (patch)
treee58e7cc74a049dbc7fc52aea6862737180cc78d3
parentde7fefc270ef3fd8552773e8e6424ad5885b3062 (diff)
newaccount function
-rw-r--r--client.c8
-rw-r--r--icclient/client.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/client.c b/client.c
index 608b7e5..9a3857c 100644
--- a/client.c
+++ b/client.c
@@ -29,6 +29,14 @@ bool icclient_init(const char *url, const char *certificate)
return (bool)curl;
}
+void icclient_newaccount(const char *username, const char *password
+ , const char *verify, const char *successpage, const char *nextpage
+ , const char *failpage)
+{
+ login(username, password, verify, "NewAccount", successpage, nextpage
+ , failpage);
+}
+
void icclient_login(const char *username, const char *password
, const char *successpage, const char *nextpage
, const char *failpage)
diff --git a/icclient/client.h b/icclient/client.h
index 53d5d77..40fdfda 100644
--- a/icclient/client.h
+++ b/icclient/client.h
@@ -6,6 +6,9 @@ extern "C" {
#endif
bool icclient_init(const char *url, const char *certificate);
+ void icclient_user_newaccount(const char *username, const char *password
+ , const char *verify, const char *successpage
+ , const char *nextpage, const char *failpage);
void icclient_login(const char *username, const char *password
, const char *successpage, const char *nextpage
, const char *failpage);