Hi
I have just added the ability to override the default telnet login with a
lua script.
To use this feature, add a lua script called login.lua into your scripts folder. The script must have a function "login" that returns two
variables, the username and password.
A very simple example script:
function login()
bbs_write_string("\r\n")
bbs_write_string("Login: ")
local uname = bbs_read_string(16)
bbs_write_string("\r\n")
bbs_write_string("Password: ")
local pass = bbs_read_password(16)
bbs_write_string("\r\n")
return uname, pass
end
Hopefully this is enough to enable people to make a login matrix if they
wish. Please note, while all bbs lua functions are accessable from this
script, it would be wise not to use any that would need a logged in user,
else it will probably crash your node.
If the login script has bugs, it will fail and the internal login will be
used instead.
This is currently in git.
Andrew
--
|03Andrew Pamment |08(|11apam|08)
|13Happy|10Land |14v2.0|08!|07
--- Talisman v0.25-dev (Linux/x86_64)
* Origin: HappyLand v2.0 -
telnet://happylandbbs.com:11892/ (21:1/182)