Hi I am trying to make a log in screen to my computers where you would set up a password and then enter it at boot up and then it would go to the shell but can not figure out how to get it to work? Please Help here is my code.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hi I am trying to make a log in screen to my computers where you would set up a password and then enter it at boot up and then it would go to the shell but can not figure out how to get it to work? Please Help here is my code.
repeat
io.write("Please enter Password")
answer= io.read()
if answer == "1257" then
io.write ("welcome back\n")
break
elseif answer ~= "1257" then
io.write("\n try again \n")
end
until answer == 1257
Link to post
Share on other sites