Update sertexID.lua
This commit is contained in:
parent
514b019502
commit
fcd18d26ed
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,7 @@ function register(username, password, isHashed)
|
||||||
end
|
end
|
||||||
|
|
||||||
function checkUser(username)
|
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
|
if check == "true" then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
|
@ -49,6 +49,8 @@ function checkUser(username)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
exists = checkUser
|
||||||
|
|
||||||
function sendSMS(username, password, to, msg, isHashed)
|
function sendSMS(username, password, to, msg, isHashed)
|
||||||
if isHashed then
|
if isHashed then
|
||||||
local send = http.post(SERVER.."send.php","user="..username.."&password="..password.."&to="..to.."&message="..message.."&hashed=true").readAll()
|
local send = http.post(SERVER.."send.php","user="..username.."&password="..password.."&to="..to.."&message="..message.."&hashed=true").readAll()
|
||||||
|
|
Loading…
Reference in a new issue