From 7cbc018b2fc1692ee1c07ca9b403789e6fd29694 Mon Sep 17 00:00:00 2001 From: Ale2610 Date: Thu, 3 Sep 2015 18:33:21 +0200 Subject: [PATCH] Update sertexID.lua --- src/apis/sertexID.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/apis/sertexID.lua b/src/apis/sertexID.lua index f1a2cef..dd5e261 100644 --- a/src/apis/sertexID.lua +++ b/src/apis/sertexID.lua @@ -22,3 +22,29 @@ function login(username, password) return false end end + +function register(username, password) + local register = http.post(SERVER.."register.php", "user="..username.."&password="..password).readAll() + if register == "Success!" then + return true + else + return false, register + end +end + +function checkUser(username) + local check = http.post(SERVER.."check.php", "user="..username).readAll() + if check == "true" then + return true + else + return false + end +end + +function sendSMS(username, password, to, msg) + +end + +function updateSMS(username, password, all, from) + +end