Posted 12 December 2012 - 11:02 AM
I'd like to be able to edit the password by a command… here is what i have so far…
I need help with the pwdchange part…
function reboot()
print ("Incorrect Username and/or Password")
sleep(1)
os.reboot()
end
Username1 = "Dexter"
Password1 = "dexter"
Username2 = "Cory"
Password2 = "cory"
Username3 = "Brandy"
Password3 = "brandy"
wording1 = "pwdchange"
shell.run("clear")
os.pullEvent = os.pullEventRaw
shell.run("titlescreen")
sleep(2)
shell.run("clear")
write ("Username: ")
input = read()
if input == Username1 then
elseif input == Username2 then
elseif input == Username3 then
write ("Password: ")
input = read("*")
and input == Password1
and input == Password2
and input == Password3
sleep(0.5)
print ("Access Granted")
shell.run("clear")
print [[
----------
| DC API |
----------]]
else
reboot()
[b] input = read()
if input == wording1 then
write ("Username: ")
if input == Username1 then
write ("Old Password: ")
and input == Password1
write ("New Password: ")
input = read()[/b]
end
end
I need help with the pwdchange part…
input = read()
if input == wording1 then
write ("Username: ")
if input == Username1 then
write ("Old Password: ")
and input == Password1
write ("New Password: ")
input = read()
end
NOTE: This isn't finished, posting halfway through the development ^^