Jump to content
  • 0

Log in with expiration dates


Aaron-Auto
 Share

Question

Recommended Posts

  • 0

@kiynoxwhat I want is to put my script in 000webhost. So there will be a log in prompt right so if the username and password is correct my script will pop up

So like I need lua for the Log in prompt it's separate 

And I need lua for like admin panel or something or u can put user info or something then I will put the user, password and date expired on it

Link to comment
Share on other sites

  • 0

[ @Aaron-Auto ]
---

Quote

is there possible u can make it username and password 

As I said earlier, you just need to edit the script I gave you above. It is pretty much the same.

lookup =
{
	["user1"] = "password1"
}

function notice(message)
	gg.alert(message)
	os.exit()
end

function menus()
	notice('You have reached the main menu!')
end

username = gg.prompt({'Enter username :'},{[1] = nil},{[1] = 'string'})
if username == nil then
	notice('Username empty, exiting...')
else
	if lookup[username[1]] == nil then
		notice('Username not found, exiting...')
	end
end

password = gg.prompt({'Enter password :'},{[1] = nil},{[1] = 'string'})
if password == nil then
	notice('Password empty, exiting...')
else
	if lookup[username[1]] ~= password then
		notice('Password incorrect, exiting...')
	end
end

menus()

---
*Dont be lazy.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.