• Login Process

    From apam@21:1/182 to All on Wed Oct 13 15:10:24 2021
    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)
  • From apam@21:1/182 to apam on Wed Oct 13 15:11:06 2021
    Hi

    Sorry, I tagged the wrong echo... I meant to put this in FSX_MAG

    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)
  • From Avon@21:1/101 to apam on Wed Oct 13 18:53:22 2021
    On 13 Oct 2021 at 03:11p, apam pondered and said...

    Sorry, I tagged the wrong echo... I meant to put this in FSX_MAG

    No probs :)

    --- Mystic BBS v1.12 A47 2021/09/29 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Spectre@21:3/101 to apam on Wed Oct 13 16:10:00 2021
    I have just added the ability to override the default telnet login with a lua script.

    Forgive my ignorance, but what uses lua?

    Spec


    *** THE READER V4.50 [freeware]
    --- SuperBBS v1.17-3 (Eval)
    * Origin: The future's uncertain, the end is always near. (21:3/101)
  • From Spectre@21:3/101 to apam on Wed Oct 13 16:11:00 2021
    Sorry, I tagged the wrong echo... I meant to put this in FSX_MAG

    Ahh so question already answered :)


    *** THE READER V4.50 [freeware]
    --- SuperBBS v1.17-3 (Eval)
    * Origin: The future's uncertain, the end is always near. (21:3/101)