Jump to content
  • 0

Log in with expiration dates


Question

Posted

Can someone make me a log in prompt that has expiration example i wanna put 2 account the 1st account is only for 7 day and the 2nd account is 14 day just like that.. i hope u guys can understand

Recommended Posts

  • 0
Posted

@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

  • 0
Posted

[ @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.

  • 0
Posted

[ @Aaron-Auto ]
---

Quote

is there possible that u can make it for only 1 device?

You can. You need to find the device: HWID and just do the same as above script.
---

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
×
×
  • 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.