diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-23 08:49:00 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-23 08:49:00 +0800 |
commit | 396df5cd796f7eed89ff5a5acf6f7c714b2cf0a7 (patch) | |
tree | 28bc944646cfc57fdcf6a393b18537245a83d9e1 /admin.c | |
parent | eb02eaccf2cbfca76dfaac806c6dc880b6e0ccad (diff) |
Admin login and logout functions
Diffstat (limited to 'admin.c')
-rw-r--r-- | admin.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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"); +} |