login = "http://xxx.com/login.php"
local user = gg.prompt({'Username', 'Password'},
{},
{[1]='text',[2]='text'}
)
if user[1] == '' or user[2] == '' then
gg.alert ("Username Or password is Wrong")
else
data = assert(load(gg.makeRequest(login ,nil,'username='..user[1]..'&password='..user[2]).content))
return data()
end
if data == '0' then
print ("Login failed, please try again.")
os.exit();
end
i have create this could but the problem when i enter the username and password that login right and no issue
but if i enter username or password wrong that not showing me print ("Login failed, please try again.") and i getting issue with its i don't now where is the issue could you help me.