Hello!
I’m doing on my project “Hotel Managment OS”,
And I’m using logging to acces it,
But I tried to script it and it says “Username is not valid” unless the Name is in table,
There how table looks
{ ["EsplishData"] = { ["Cookie"] = "********", ["Password"] = "******" }}
There is code how I’m checking it.
function Controller:LogIn(Username,Password)
if table.find(DataBase,Username) then
if DataBase[Username]["Password"] == Password then
script.Parent.Cookie.Value = DataBase[Username]["Cookie"]
return "Succesfull Login!"
else
return "Wrong password!"
end
else
return "Username is not valid!"
end
end
Thanks for any help!