Update sertexID.lua
This commit is contained in:
parent
972a6fa56a
commit
7cbc018b2f
1 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue