Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t_args = {...}
- config = t_args[1]
- modem = t_args[2]
- modem.open(config["network_port"])
- gui.clear()
- gui.title("Alpha Cloud - v"..config["version"])
- gui.jumpLine()
- gui.text("Please enter your credentials in order to access your Cloud Storage.")
- gui.jumpLine()
- username_x, username_y = gui.field("Username")
- password_x, password_y = gui.field("Password")
- term.setCursorPos(username_x, username_y)
- username = read()
- term.setCursorPos(password_x, password_y)
- password = read("*")
- if ftp.auth(modem, config["network_port"], config["default_timeout"], username, password) then
- os.run({},"user_space.lua", config, modem, username)
- else
- gui.clear()
- gui.title("Alpha Cloud - v"..config["version"])
- gui.jumpLine()
- gui.text("Invalid credentials. Please check your password and username, and then retry.")
- os.sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement