From fcd18d26ed3fce01510c8cab8896de7abe10c1f9 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Mon, 12 Oct 2015 16:58:59 +0200 Subject: [PATCH] Update sertexID.lua --- src/apis/sertexID.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apis/sertexID.lua b/src/apis/sertexID.lua index 89d8116..2f9301a 100644 --- a/src/apis/sertexID.lua +++ b/src/apis/sertexID.lua @@ -41,7 +41,7 @@ function register(username, password, isHashed) end function checkUser(username) - local check = http.post(SERVER.."check.php", "user="..username).readAll() + local check = http.post(SERVER.."exists.php", "user="..username).readAll() if check == "true" then return true else @@ -49,6 +49,8 @@ function checkUser(username) end end +exists = checkUser + function sendSMS(username, password, to, msg, isHashed) if isHashed then local send = http.post(SERVER.."send.php","user="..username.."&password="..password.."&to="..to.."&message="..message.."&hashed=true").readAll()