• Methods for logon

    From Kirkman@VERT/GUARDIAN to All on Tue Aug 8 12:07:30 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 15:22:31 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 18:59:15 2017
    Re: Methods for logonã By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pmãã DM> I think you're thinking of the bbs.login() method, not bbs.logon().ã DM> Currently, the password prompt cannot be bypassed, but I could prettyã DM> easily make that optional (e.g. do something like bbs.logon(user_name,ã DM> null, password)) but it would only work with a future v3.17 developmentã DM> 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 12:26:22 2017
    Re: Methods for logonã By: Digital Man to Kirkman on Tue Aug 08 2017 03:22 pmãã DM> I think you're thinking of the bbs.login() method, not bbs.logon().ã DM> Currently, the password prompt cannot be bypassed, but I could prettyã DM> easily make that optional (e.g. do something like bbs.logon(user_name,ã DM> null, password)) but it would only work with a future v3.17 developmentã DM> 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.ãã DM> Yes, I could add another optional system_password parameter toã DM> 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 13:09:10 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ã >ã > DM> I think you're thinking of the bbs.login() method, not bbs.logon().ã > DM> Currently, the password prompt cannot be bypassed, but I could prettyã > DM> easily make that optional (e.g. do something like bbs.logon(user_name,ã > DM> null, password)) but it would only work with a future v3.17 developmentã > DM> 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 13:09:32 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ã >ã > DM> I think you're thinking of the bbs.login() method, not bbs.logon().ã > DM> Currently, the password prompt cannot be bypassed, but I could prettyã > DM> easily make that optional (e.g. do something like bbs.logon(user_name,ã > DM> null, password)) but it would only work with a future v3.17 developmentã > DM> 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.ã >ã > DM> Yes, I could add another optional system_password parameter toã > DM> 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 20:11:17 2017
    Re: Methods for logonã By: Digital Man to Nightfox on Wed Aug 09 2017 01:09 pmãã > DM>> Yes, I could add another optional system_password parameter toã > DM>> bbs.login().ãã >> I think that would be useful for my login matrix as well.ãã DM> 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ã