• Module to initiate login

    From Nick Young@1:103/705 to All on Mon Jul 24 10:51:13 2023
    Hello,

    Wondering if there's a loadable module out there that prompts the user to press a key to initiate the login module.

    For example, the user calls and before they even get to the User Name prompt, they have to click ESC in order for the User Name prompt to show. If they don't press the key within 'n' time, then the user is disconnected.


    Thanks

    ---
    þ Synchronet þ Sent from TFSI BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Nick Young on Mon Jul 24 08:04:22 2023
    Re: Module to initiate login
    By: Nick Young to All on Mon Jul 24 2023 10:51 am

    Wondering if there's a loadable module out there that prompts the user to press a key to initiate the login module.

    For example, the user calls and before they even get to the User Name prompt, they have to click ESC in order for the User Name prompt to show. If they don't press the key within 'n' time, then the user is disconnected.

    I've seen at least one BBS that did something like that, though I'm not sure if it's using a module that's publicly available.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Nick Young on Mon Jul 24 11:01:02 2023
    Re: Module to initiate login
    By: Nick Young to All on Mon Jul 24 2023 10:51 am

    Hello,

    Wondering if there's a loadable module out there that prompts the user to press a key to initiate the login module.

    For example, the user calls and before they even get to the User Name prompt, they have to click ESC in order for the User Name prompt to show. If they don't press the key within 'n' time, then the user is disconnected.

    That would just be a couple of extra lines added exec/login.js (copy to your "mods" directory first) - no need for a separate loadable module.

    Something like:

    require("key_defs.js", "KEY_ESC");
    console.print("Press ESC to login");
    if(console.inkey(5000) != KEY_ESC)
    bbs.hangup();

    '5000' here is your 'n' time (in milliseconds).
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #63:
    REP = QWK Reply
    Norco, CA WX: 87.5øF, 51.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From afinix@1:103/705 to Digital Man, Nightfox on Mon Jul 24 23:49:11 2023
    Re: Module to initiate login
    By: Digital Man to Nick Young on Mon Jul 24 2023 11:01 am

    Thank you both, managed to sort it out with help from codefenix!


    Nick

    ---
    þ Synchronet þ Sent from TFSI BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From The Lizard Master@1:103/705 to Nightfox on Tue Jul 25 07:46:50 2023
    Re: Module to initiate login
    By: Nightfox to Nick Young on Mon Jul 24 2023 08:04 am

    I've seen at least one BBS that did something like that, though I'm not sure if it's using a module that's publicly available.

    I used to see that all the time back in the day, never understood what it was for. I guess it makes sense to know you aren't getting hit with a war dialer or something?

    ---TLM

    ---
    þ Synchronet þ Nite Eyes BBS - To make people happy about my tagline everywhere...
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Gamgee@1:103/705 to afinix on Tue Jul 25 07:58:00 2023
    afinix wrote to Digital Man, Nightfox <=-

    Re: Module to initiate login
    By: Digital Man to Nick Young on Mon Jul 24 2023 11:01 am

    Thank you both, managed to sort it out with help from codefenix!

    Would you mind sharing the solution that you came up with?



    ... If not for the last minute, nothing would get done.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From CyberNix@1:103/705 to Gamgee on Wed Jul 26 10:09:03 2023
    Re: Re: Module to initiate login
    By: Gamgee to afinix on Tue Jul 25 2023 07:58 am

    Would you mind sharing the solution that you came up with?

    Sure. Codefenix gave me some code that executes as soon as a connection is made and just prints out to press ESC or "%". If either key is not pressed within 10 seconds, then call bbs.hangup(), and if the key is pressed then execute the rest of the login script.

    (and yes, I changed my alias again :)


    Thanks,
    Nick

    ---
    þ Synchronet þ Sent from TFSI BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Gamgee@1:103/705 to CyberNix on Wed Jul 26 08:30:00 2023
    CyberNix wrote to Gamgee <=-

    Would you mind sharing the solution that you came up with?

    Sure. Codefenix gave me some code that executes as soon as a
    connection is made and just prints out to press ESC or "%". If
    either key is not pressed within 10 seconds, then call
    bbs.hangup(), and if the key is pressed then execute the rest of
    the login script.

    I see. Is this code copyrighted.... or shareable... ?



    ... Internal Error: The system has been taken over by sheep at line 19960
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From CyberNix@1:103/705 to Gamgee on Thu Jul 27 14:20:07 2023
    Re: Re: Module to initiate login
    By: Gamgee to CyberNix on Wed Jul 26 2023 08:30 am

    I see. Is this code copyrighted.... or shareable... ?

    Not copyrighted, see: https://gist.github.com/nickshanks347/9b73f1dd5b998a46f68bd339a6416104

    Pay attention to the code you're adding as the existing code will now be nested inside a for loop so ensure you include a "}" before bbs.hangup() (on the last line).


    Let me know if you're having any issues.

    Nick

    ---
    þ Synchronet þ Sent from TFSI BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Gamgee@1:103/705 to CyberNix on Thu Jul 27 21:14:00 2023
    CyberNix wrote to Gamgee <=-

    Re: Re: Module to initiate login
    By: Gamgee to CyberNix on Wed Jul 26 2023 08:30 am

    I see. Is this code copyrighted.... or shareable... ?

    Not copyrighted, see: https://gist.github.com/nickshanks347/9b73f1dd5b998a46f68bd339a641
    6104

    Pay attention to the code you're adding as the existing code will
    now be nested inside a for loop so ensure you include a "}"
    before bbs.hangup() (on the last line).

    Cool, I'll give this a look. Thanks.



    ... Enter any 12 digit prime number to continue.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)