• exec/login.js logon.js

    From rswindell@VERT to CVS commit on Tuesday, July 16, 2019 05:10:47
    exec login.js 1.17 1.18 logon.js 1.46 1.47
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv23964

    Modified Files:
    login.js logon.js
    Log Message:
    Added support for "fast logons". This feature must be enabled by the sysop
    by setting fast_logon=true in the [login] section of the ctrl/modopts.ini file. A user can choose a fast logon by prefixing their user name or number with
    '!' (configurable via 'fast_logon_char'). This option tells logon.js to
    skip the logon menus and logon events.
    The logon.js just looks for bbs.fast_logon==true, so if you have your own method of detecting a fast logon (e.g. a logon matrix menu or a prompt of the user), then you could just set bbs.fast_logon=true and continue to use the stock logon.js.

    Other ideas (not implemented):
    - a minimum security level (or ARS) required to allow fast logons
    - a notice to the user that fast logons are available (enabled)
    - option to skip logon menus but not logon events, or vice-versa



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, July 16, 2019 07:13:12
    exec login.js 1.19 1.20 logon.js 1.47 1.48
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv7231

    Modified Files:
    login.js logon.js
    Log Message:
    As PSI-Jack pointed out, detecting fast-logons in login.js does not help
    with logins via SSH or RLogin (handled in answer.cpp). So revert login.js
    back to rev 1.17 since the fast-logons are now detected in the login name parsing in login.cpp's sbbs_t::parse_login() which is used in answer() and login() - called via bbs.login().

    So... if you're writing a login matrix or custom login module where you want
    to use a *different* method of detecting/enabling fast logon support, you'll just need to set the SS_FASTLOGON flag in the JS bbs.sys_status property:
    bbs.sys_status |= SS_FASTLOGON;

    This also means that 2 modopts.ini options (fast_logon and fast_logon_requirments) are now used in logon.js, not login.js, so the section where you add them is now [logon], not [login]. Got it? Good. :-)



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to rswindell on Tuesday, July 16, 2019 17:23:22
    Re: exec/login.js logon.js
    By: rswindell to CVS commit on Tue Jul 16 2019 12:13 am

    As PSI-Jack pointed out, detecting fast-logons in login.js does not help with logins via SSH or RLogin (handled in answer.cpp). So revert login.js back to rev 1.17 since the fast-logons are now detected in the login name parsing in login.cpp's sbbs_t::parse_login() which is used in answer() and login() - called via bbs.login().

    So does that mean if a user wants fast logon, they'd have to change their username to have the prefix?

    Nightfox

    ---
    Synchronet Digital Distortion: digitaldistortionbbs.com
  • From mark lewis@VERT to Nightfox on Tuesday, July 16, 2019 20:51:20
    On 2019 Jul 16 10:23:22, you wrote to rswindell:

    As PSI-Jack pointed out, detecting fast-logons in login.js does not
    help with logins via SSH or RLogin (handled in answer.cpp). So revert
    login.js back to rev 1.17 since the fast-logons are now detected in
    the login name parsing in login.cpp's sbbs_t::parse_login() which is
    used in answer() and login() - called via bbs.login().

    So does that mean if a user wants fast logon, they'd have to change
    their username to have the prefix?

    no... when they're at the login screen, they simply prefix their name with the fast logon character...

    eg:
    Enter your user name or number: !foobar
    Enter your user name or number: !1

    the system will see the "!", set the var for fast logons, strip it from the user's name or number, and process as normal... if fast logon is selected, they'll skip things getting in to the main menu... QWK does this already... that's how you get tossed directly to the QWK menu when you login with a QWK account...

    )\/(ark

    And to this end they built themselves a stupendous super-computer which was
    so amazingly intelligent that even before its data banks had been connected
    up it had started from "I think therefore I am" and got as far as deducing
    the existence of rice pudding and income tax before anyone managed to turn
    it off.
    ... 38. Never push someone off a dock.
    ---
    * Origin: (1:3634/12.73)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Nightfox on Tuesday, July 16, 2019 21:36:24
    Re: exec/login.js logon.js
    By: Nightfox to rswindell on Tue Jul 16 2019 10:23 am

    Re: exec/login.js logon.js
    By: rswindell to CVS commit on Tue Jul 16 2019 12:13 am

    As PSI-Jack pointed out, detecting fast-logons in login.js does not help with logins via SSH or RLogin (handled in answer.cpp). So revert login.js back to rev 1.17 since the fast-logons are now detected in the login name parsing in login.cpp's sbbs_t::parse_login() which is used in answer() and login() - called via bbs.login().

    So does that mean if a user wants fast logon, they'd have to change their username to have the prefix?

    They just have to *type* their username at the Login: prompt with the '!' prefix. The '!' prefix isn't actually part of their username.

    digital man

    Synchronet "Real Fact" #55:
    Synchronet Terminal Server introduced RLogin support w/v3.00c (2000).
    Norco, CA WX: 89.2F, 45.0% humidity, 10 mph ENE wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Wednesday, July 17, 2019 00:06:26
    Re: exec/login.js logon.js
    By: Digital Man to Nightfox on Tue Jul 16 2019 02:36 pm

    As PSI-Jack pointed out, detecting fast-logons in login.js does
    not help with logins via SSH or RLogin (handled in answer.cpp). So
    revert login.js back to rev 1.17 since the fast-logons are now
    detected in the login name parsing in login.cpp's
    sbbs_t::parse_login() which is used in answer() and login() -
    called via bbs.login().

    So does that mean if a user wants fast logon, they'd have to change
    their username to have the prefix?

    They just have to *type* their username at the Login: prompt with the '!' prefix. The '!' prefix isn't actually part of their username.

    I meant for RLogin and SSH connections, in which case the user isn't given the opportunity to type their username. Would the user add the ! prefix in their terminal program in that case?

    Nightfox

    ---
    Synchronet Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Wednesday, July 17, 2019 00:23:27
    Re: exec/login.js logon.js
    By: Nightfox to Digital Man on Tue Jul 16 2019 05:06 pm

    Re: exec/login.js logon.js
    By: Digital Man to Nightfox on Tue Jul 16 2019 02:36 pm

    As PSI-Jack pointed out, detecting fast-logons in login.js does
    not help with logins via SSH or RLogin (handled in answer.cpp). So rs>> revert login.js back to rev 1.17 since the fast-logons are now
    detected in the login name parsing in login.cpp's
    sbbs_t::parse_login() which is used in answer() and login() -
    called via bbs.login().

    So does that mean if a user wants fast logon, they'd have to change
    their username to have the prefix?

    They just have to *type* their username at the Login: prompt with the '!' prefix. The '!' prefix isn't actually part of their username.

    I meant for RLogin and SSH connections, in which case the user isn't given the opportunity to type their username. Would the user add the ! prefix in their terminal program in that case?

    The login name is provided as part of the protocol, so however the user specifies that to the ssh/rlgoin client, they just need to prepend the '!', e.g. on Linux:
    ssh \!user@yourbbs.com

    The '\' escape is needed for bash cmdline, not sure about other shells.

    digital man

    Synchronet/BBS Terminology Definition #31:
    FTP = File Transfer Protocol
    Norco, CA WX: 84.8F, 49.0% humidity, 12 mph N wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From mark lewis@VERT to Digital Man on Wednesday, July 17, 2019 05:53:54
    On 2019 Jul 16 17:23:26, you wrote to Nightfox:

    The login name is provided as part of the protocol, so however the user specifies that to the ssh/rlgoin client, they just need to prepend the
    '!',
    e.g. on Linux:
    ssh \!user@yourbbs.com

    The '\' escape is needed for bash cmdline, not sure about other shells.

    i was going to try quoting the username when i update and give it a try... i might still try that but i am a little more aware, now, that i may have to use the \ :)

    )\/(ark

    And to this end they built themselves a stupendous super-computer which was
    so amazingly intelligent that even before its data banks had been connected
    up it had started from "I think therefore I am" and got as far as deducing
    the existence of rice pudding and income tax before anyone managed to turn
    it off.
    ... I have no proof McDonald's Fries weren't mobile animals in the past.
    ---
    * Origin: (1:3634/12.73)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to mark lewis on Wednesday, July 17, 2019 17:17:36
    Re: exec/login.js logon.js
    By: mark lewis to Digital Man on Tue Jul 16 2019 10:53 pm

    And to this end they built themselves a stupendous super-computer which was so amazingly intelligent that even before its data banks had been connected up it had started from "I think therefore I am" and got as far as deducing the existence of rice pudding and income tax before anyone managed to turn it off.

    That's a fairly long signature(?). At first when I first saw it, I thought it might have been intended as part of the message..

    Nightfox

    ---
    Synchronet Digital Distortion: digitaldistortionbbs.com
  • From mark lewis@VERT to Nightfox on Wednesday, July 17, 2019 21:41:00
    On 2019 Jul 17 10:17:36, you wrote to me:

    And to this end they built themselves a stupendous super-computer
    which was so amazingly intelligent that even before its data banks
    had been connected up it had started from "I think therefore I am"
    and got as far as deducing the existence of rice pudding and income
    tax before anyone managed to turn it off.

    That's a fairly long signature(?).

    some might consider it as part of the signature but it really isn't ;)

    At first when I first saw it, I thought it might have been intended as part of the message..

    nope... just a funny quip that won't fit in a tagline (yet but it will once taglines are no longer limited to max 75 or so characters)...

    )\/(ark

    And to this end they built themselves a stupendous super-computer which was
    so amazingly intelligent that even before its data banks had been connected
    up it had started from "I think therefore I am" and got as far as deducing
    the existence of rice pudding and income tax before anyone managed to turn
    it off.
    ... A mind stretched by new ideas can never go back to its original size.
    ---
    * Origin: (1:3634/12.73)
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to mark lewis on Wednesday, July 17, 2019 20:08:30
    Re: exec/login.js logon.js
    By: mark lewis to Nightfox on Wed Jul 17 2019 02:41 pm

    nope... just a funny quip that won't fit in a tagline (yet but it will once taglines are no longer limited to max 75 or so characters)...

    What editor are you using where taglines are limited to ~75 characters? I thought a tag line was just some extra text added to the end of a message and could be any length.

    Nightfox

    ---
    Synchronet Digital Distortion: digitaldistortionbbs.com
  • From Rampage@VERT/SESTAR to Nightfox on Thursday, July 18, 2019 14:19:39
    Re: exec/login.js logon.js
    By: Nightfox to mark lewis on Wed Jul 17 2019 13:08:30

    nope... just a funny quip that won't fit in a tagline (yet but it will once taglines are no longer limited to max 75 or so characters)...

    What editor are you using where taglines are limited to ~75 characters? I thought a tag line was just some extra text added to the end of a message and could be any length.

    if you looks at my tear line in that message, you should see that it says GoldEd... if it isn't on the tear line, then it is in the header control lines... a lot of QWK readers also limit the tag lines, too... what ends up happening is they have a fixed length buffer and chop the tag line that is selected...

    )\/(ark

    ---
    Synchronet The SouthEast Star Mail HUB - SESTAR
  • From Ed Vance@VERT/CAPCITY2 to Nightfox on Friday, July 19, 2019 02:22:00
    07-17-19 13:08 Nightfox wrote to mark lewis about exec/login.js logon.js
    Howdy! Nightfox

    @VIA: VERT/DIGDIST
    @MSGID: <5D2F803E.19941.dove_syncprog@digitaldistortionbbs.com>
    @REPLY: <5D2F7010.38964.syncprog@vert.synchro.net>
    Re: exec/login.js logon.js
    By: mark lewis to Nightfox on Wed Jul 17 2019 02:41 pm

    nope... just a funny quip that won't fit in a tagline (yet but it will once taglines are no longer limited to max 75 or so characters)...

    What editor are you using where taglines are limited to ~75 characters?
    I thought a tag line was just some extra text added to the end of a message and could be any length.

    Seeing Mark wrote 75 made me wonder if he is Dyslectic?

    Reading about Tagline length had me thinking of Silly Little Mail Reader
    (SLMR) and OLX limit a Tagline to 57 characters.

    One of the Taglines in SLMR is:

    Itsdifficulttobeverycreativewithonlyfiftysevencharacters!

    SLMR (and probably OLX) can't read the whole messages if it is longer
    than 153 (?) lines.

    MultiMail allowing a little bit longer Tagline and its being able to
    read all of a message is why I switched from SLMR to using MM.

    When I used SLMR and wanted to swipe a Tagline longer than 57 Characters
    I WouldShrinkTheTaglineDownByRemovingAllOfTheSpacesThatI CouldSoI Could SaveItIntoTheTaglineFile.

    73 de Ed W9ODR . .


    ... Br dmg  thks, lrd hv sm.
    --- MultiMail/MS-DOS v0.49
    Synchronet CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
  • From Rampage@VERT/SESTAR to Ed Vance on Friday, July 19, 2019 17:16:40
    Re: exec/login.js logon.js
    By: Ed Vance to Nightfox on Thu Jul 18 2019 19:22:00

    nope... just a funny quip that won't fit in a tagline (yet but it will once taglines are no longer limited to max 75 or so characters)...

    What editor are you using where taglines are limited to ~75 characters?
    I thought a tag line was just some extra text added to the end of a message and could be any length.

    Seeing Mark wrote 75 made me wonder if he is Dyslectic?

    nope... 75 characters leaves room for the "three dots and a space" lead-in of tag lines... that takes the line to 79 characters...

    Reading about Tagline length had me thinking of Silly Little Mail Reader (SLMR) and OLX limit a Tagline to 57 characters.

    that's because they are not standard tag lines... tag lines start with three dots at column one... those offline reader/editors do not use three dots and they stuff other text before the tag line... text that could be on the tear line instead... but one also has to remember that in networks like FTNs, QWK was shoehorned in and never fully conformed to the tech or provided all the available features...

    )\/(ark

    ---
    Synchronet The SouthEast Star Mail HUB - SESTAR
  • From Nightfox@VERT/DIGDIST to Rampage on Friday, July 19, 2019 19:51:29
    Re: exec/login.js logon.js
    By: Rampage to Ed Vance on Fri Jul 19 2019 10:16 am

    nope... 75 characters leaves room for the "three dots and a space" lead-in of tag lines... that takes the line to 79 characters...

    That seems to assume the tag line is going to be a single line of text. Why not let the tag line be any length and word-wrap it with the leading "... " if it doesn't fit on one line?

    Nightfox

    ---
    Synchronet Digital Distortion: digitaldistortionbbs.com
  • From Rampage@VERT/SESTAR to Nightfox on Saturday, July 20, 2019 04:20:33
    Re: exec/login.js logon.js
    By: Nightfox to Rampage on Fri Jul 19 2019 12:51:29

    Ra<> nope... 75 characters leaves room for the "three dots and a space" lead-in of tag lines... that takes the line to 79 characters...

    That seems to assume the tag line is going to be a single line of text. Why not let the tag line be any length and word-wrap it with the leading "... " if it doesn't fit on one line?

    there ya go! ;)

    )\/(ark

    ---
    Synchronet The SouthEast Star Mail HUB - SESTAR