• logonlist/logonlist_lib

    From Mortifis@VERT/ALLEYCAT to All on Thu Mar 26 12:11:32 2020
    Is there a way to have logonlist_lib.add(user) include HTTP connections?

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From echicken@VERT/ECBBS to Mortifis on Thu Mar 26 11:35:29 2020
    Re: logonlist/logonlist_lib
    By: Mortifis to All on Thu Mar 26 2020 12:11:32

    Is there a way to have logonlist_lib.add(user) include HTTP connections?

    If you dig through exec/load/presence_lib.js a bit you'll see some web-related stuff that you could make use of.

    My web UI maintains a session store for each logged-in user, in INI format, at data/####.web, where ####
    is the user number front-padded with zeros. I *think* all you would really need to do is make your web interface create and manage such files, and ensure that each one has an 'action' key/value pair describing what the user is doing.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Digital Man@VERT to Mortifis on Thu Mar 26 13:34:10 2020
    Re: logonlist/logonlist_lib
    By: Mortifis to All on Thu Mar 26 2020 12:11 pm

    Is there a way to have logonlist_lib.add(user) include HTTP connections?

    It already supports web logons, see https://github.com/echicken/synchronet-web-v4/blob/master/web/lib/auth.jsfor an example.

    digital man

    Synchronet "Real Fact" #94:
    Synchronet v3.16c was released in August of 2015 (5 years after v3.15b).
    Norco, CA WX: 57.1øF, 40.0% humidity, 8 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to echicken on Thu Mar 26 13:35:02 2020
    Re: logonlist/logonlist_lib
    By: echicken to Mortifis on Thu Mar 26 2020 11:35 am

    Re: logonlist/logonlist_lib
    By: Mortifis to All on Thu Mar 26 2020 12:11:32

    Is there a way to have logonlist_lib.add(user) include HTTP connections?

    If you dig through exec/load/presence_lib.js a bit you'll see some web-related stuff that you could make use of.

    My web UI maintains a session store for each logged-in user, in INI format, at data/####.web, where #### is the user number front-padded with zeros. I *think* all you would really need to do is make your web interface create and manage such files, and ensure that each one has an 'action' key/value pair describing what the user is doing.

    logonlist and presence are 2 different (though related) things however. :-)

    digital man

    This Is Spinal Tap quote #16:
    David St. Hubbins: I believe virtually everything I read...
    Norco, CA WX: 57.1øF, 40.0% humidity, 8 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mortifis@VERT/ALLEYCAT to echicken on Sat Mar 28 17:23:12 2020
    Re: logonlist/logonlist_lib
    By: Mortifis to All on Thu Mar 26 2020 12:11:32

    Is there a way to have logonlist_lib.add(user) include HTTP connections?

    If you dig through exec/load/presence_lib.js a bit you'll see some web-related stuff that you could make use of.

    My web UI maintains a session store for each logged-in user, in INI format, at data/####.web, where ####
    is the user number front-padded with zeros. I *think* all you would really need to do is make your web interface create and manage such files, and ensure that each one has an 'action' key/value pair describing what the user is doing.

    I have a script that does something similar .. writea a zero padded /sbbs/data/user/user.number.web (ie 0001.web action:etrucker web replying to message) but since a recent update it is not being picked up ... not sure what happened with it

    ---
    þ Synchronet þ AlleyCat! BBS Lake Echo, NS Canada