Update sertexID.lua

This commit is contained in:
Ale32bit 2015-10-12 16:58:59 +02:00
parent 514b019502
commit fcd18d26ed

View file

@ -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()