• Methods for logon

    From Kirkman@VERT/GUARDIAN to All on Tuesday, August 08, 2017 12:07:30
    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 Tuesday, August 08, 2017 15:22:31
    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.0F, 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 Tuesday, August 08, 2017 18:59:15
    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 Wednesday, August 09, 2017 12:26:22
    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 Wednesday, August 09, 2017 13:09:10
    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.0F, 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 Wednesday, August 09, 2017 13:09:32
    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.0F, 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 Thursday, August 10, 2017 20:11:17
    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