• Methods for logon

    From Kirkman@VERT/GUARDIAN to All on Tue Aug 8 08:07:00 2017
    For a while I've been using Nightfox's DDLoginMatrix mod to customize the logon process on my BBS.

    However, I recently got the itch to try writing my own logon script. I wanted to build something using the Frame.js, Tree.js, and Typeahead.js libraries.

    Anyway, I have something now that's working, but I had a few questions for DM (or whoever might know).

    The first: is there a way to do something like bbs.logon() method, but without the builtin password prompt? I'm looking for a way to handle the password input prompt myself. Once I had the user's input, I would pass it to the logon method.

    Second: Is there a way to do the same with the system password? If my script detected the user was attempting to logon to a sysop-level account, I would build my own password prompt, then pass the user's entered system password to the logon() method.

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    þ Synchronet
  • From Digital Man@VERT to Kirkman on Tue Aug 8 11:22:00 2017
    Re: Methods for logon
    By: Kirkman to All on Tue Aug 08 2017 12:07 pm

    For a while I've been using Nightfox's DDLoginMatrix mod to customize the logon process on my BBS.

    However, I recently got the itch to try writing my own logon script. I wanted to build something using the Frame.js, Tree.js, and Typeahead.js libraries.

    Anyway, I have something now that's working, but I had a few questions for DM (or whoever might know).

    The first: is there a way to do something like bbs.logon() method, but without the builtin password prompt? I'm looking for a way to handle the password input prompt myself. Once I had the user's input, I would pass it to the logon method.

    I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.

    Second: Is there a way to do the same with the system password? If my script detected the user was attempting to logon to a sysop-level account, I would build my own password prompt, then pass the user's entered system password to the logon() method.

    Yes, I could add another optional system_password parameter to bbs.login().

    digital man

    Synchronet "Real Fact" #28:
    Rob Swindell's first computer was a Commodore VIC-20 (1980).
    Norco, CA WX: 93.0øF, 34.0% humidity, 9 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Kirkman@VERT/GUARDIAN to Digital Man on Tue Aug 8 14:59:00 2017
    Re: Methods for logon
    By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pm

    I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.

    Yes, bbs.login() is what I meant. Sorry, I get those mixed up all the time.

    And your proposal would be perfect. My BBS runs off the the CVS, anyway, so I'd be happy with that.

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    þ Synchronet
  • From Nightfox@VERT/DIGDIST to Digital Man on Wed Aug 9 08:26:00 2017
    Re: Methods for logon
    By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pm

    I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.

    Second: Is there a way to do the same with the system password? If my
    script detected the user was attempting to logon to a sysop-level
    account, I would build my own password prompt, then pass the user's
    entered system password to the logon() method.

    Yes, I could add another optional system_password parameter to bbs.login().

    I think that would be useful for my login matrix as well.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Kirkman on Wed Aug 9 09:09:00 2017
    Re: Methods for logon
    By: Kirkman to Digital Man on Tue Aug 08 2017 06:59 pm

    Re: Methods for logon
    By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pm

    I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.

    Yes, bbs.login() is what I meant. Sorry, I get those mixed up all the time.

    And your proposal would be perfect. My BBS runs off the the CVS, anyway, so I'd be happy with that.

    Okay, I committed the change to bbs.login() - 2 additional (optional) arguments: user_pw and sys_pw. If supplied, the passwords won't be prompted for. Also, if you don't supply the 2nd argument (the user password prompt), it won't be displayed either - previously the function would just fail. If you pass the user password, the prompt isn't displayed anyway, so just passsing null or a blank string for the password prompt should be fine.

    digital man

    Synchronet "Real Fact" #24:
    1584 Synchronet BBS Software registrations were sold between 1992 and 1996. Norco, CA WX: 89.0øF, 41.0% humidity, 6 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Nightfox on Wed Aug 9 09:09:00 2017
    Re: Methods for logon
    By: Nightfox to Digital Man on Wed Aug 09 2017 12:26 pm

    Re: Methods for logon
    By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pm

    I think you're thinking of the bbs.login() method, not bbs.logon(). Currently, the password prompt cannot be bypassed, but I could pretty easily make that optional (e.g. do something like bbs.logon(user_name, null, password)) but it would only work with a future v3.17 development build.

    Second: Is there a way to do the same with the system password? If my
    script detected the user was attempting to logon to a sysop-level
    account, I would build my own password prompt, then pass the user's
    entered system password to the logon() method.

    Yes, I could add another optional system_password parameter to bbs.login().

    I think that would be useful for my login matrix as well.

    Give the new method a try a let me know how it works for you.

    digital man

    Synchronet "Real Fact" #4:
    Synchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal.
    Norco, CA WX: 89.0øF, 41.0% humidity, 6 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Thu Aug 10 16:11:00 2017
    Re: Methods for logon
    By: Digital Man to Nightfox on Wed Aug 09 2017 01:09 pm

    Yes, I could add another optional system_password parameter to
    bbs.login().

    I think that would be useful for my login matrix as well.

    Give the new method a try a let me know how it works for you.

    It seems to work as expected.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com