summaryrefslogtreecommitdiff
path: root/admin.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-23 08:49:00 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-23 08:49:00 +0800
commit396df5cd796f7eed89ff5a5acf6f7c714b2cf0a7 (patch)
tree28bc944646cfc57fdcf6a393b18537245a83d9e1 /admin.c
parenteb02eaccf2cbfca76dfaac806c6dc880b6e0ccad (diff)
Admin login and logout functions
Diffstat (limited to 'admin.c')
-rw-r--r--admin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/admin.c b/admin.c
new file mode 100644
index 0000000..60bf583
--- /dev/null
+++ b/admin.c
@@ -0,0 +1,14 @@
+#include "login.h"
+#include "icclient/admin.h"
+
+void icclient_admin_login(const char *username, const char *password
+ , const char *successpage, const char *nextpage
+ , const char *failpage)
+{
+ login(username, password, NULL, "MMLogin", successpage, nextpage, failpage);
+}
+
+void icclient_admin_logout()
+{
+ request(NULL, NULL, NULL, "%s", "admin/login");
+}