• User's Email Variable Name

    From ansunent@1:103/705 to all on Tue Dec 20 21:52:58 2022
    If "system.inet_addr" gives me the @domain.com portion, then what variable name gives me the "first.last" portion?

    In the end, I want "first.last@domain.com", but for the life of me, I can't find the variable name that sbbs uses for the "first.last" portion.

    Any help would be appreciated.

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to ansunent on Tue Dec 20 21:04:27 2022
    Re: User's Email Variable Name
    By: ansunent to all on Tue Dec 20 2022 09:52 pm

    If "system.inet_addr" gives me the @domain.com portion, then what variable name gives me the "first.last" portion?

    In the end, I want "first.last@domain.com", but for the life of me, I can't find the variable name that sbbs uses for the "first.last" portion.

    Any help would be appreciated.

    In JavaScript, the user.email property will give you the user's email address on the BBS.
    --
    digital man (rob)

    Breaking Bad quote #43:
    Congratulations! You're now officially the cute one of the group.
    Norco, CA WX: 54.1øF, 48.0% humidity, 0 mph NNE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From ansunent@1:103/705 to Digital Man on Tue Dec 20 23:24:55 2022
    Re: User's Email Variable Name
    By: Digital Man to ansunent on Tue Dec 20 2022 21:04:27

    In JavaScript, the user.email property will give you the user's email address on the BBS.

    I tried that, but it was at the registration page on webv4, and after that the system has them actually use their login to, well, "log in". So, I'm assuming the system won't display their email address back to them because they're not logged in yet even though they are registered.

    ---
    þ Synchronet þ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to ansunent on Tue Dec 20 21:29:54 2022
    Re: User's Email Variable Name
    By: ansunent to Digital Man on Tue Dec 20 2022 11:24 pm

    Re: User's Email Variable Name
    By: Digital Man to ansunent on Tue Dec 20 2022 21:04:27

    In JavaScript, the user.email property will give you the user's email address on the BBS.

    I tried that, but it was at the registration page on webv4, and after that the system has them actually use their login to, well, "log in". So, I'm assuming the system won't display their email address back to them because they're not logged in yet even though they are registered.

    If you know they're user number, you can create a new User instance and read/display the 'email' property. The user doesn't have to be logged in.
    --
    digital man (rob)

    Sling Blade quote #24:
    Karl: Kaiser blade. I hit my mother upside the head with it. Mmm... Killed her. Norco, CA WX: 53.4øF, 48.0% humidity, 0 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From ansunent@1:103/705 to Digital Man on Thu Dec 22 01:33:43 2022
    Re: User's Email Variable Name
    By: Digital Man to ansunent on Tue Dec 20 2022 21:29:54

    If you know they're user number, you can create a new User instance and read/display the 'email' property. The user doesn't have to be logged in.

    I'm not certain how I would be able to do that unless their user number is assigned at the point that registration is successfully submitted, but I may have missed something.

    ---
    þ Synchronet þ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to ansunent on Thu Dec 22 20:43:43 2022
    Re: User's Email Variable Name
    By: ansunent to Digital Man on Thu Dec 22 2022 01:33 am

    Re: User's Email Variable Name
    By: Digital Man to ansunent on Tue Dec 20 2022 21:29:54

    If you know they're user number, you can create a new User instance and read/display the 'email' property. The user doesn't have to be logged in.

    I'm not certain how I would be able to do that unless their user number is assigned at the point that registration is successfully submitted, but I may have missed something.

    I'm not sure exactly what you're trying to accomplish, but if you know the user's alias or real name, it's trivial in JS to replace the spaces in their real name or alias with '.' and append '@' + system.inet_addr to the result and display it to the user.
    --
    digital man (rob)

    Synchronet "Real Fact" #45:
    Synchronet External "Plain Old Telephone System" support was introduced in 2007 Norco, CA WX: 56.7øF, 61.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From ansunent@1:103/705 to Digital Man on Fri Dec 23 19:52:52 2022
    Re: User's Email Variable Name
    By: Digital Man to ansunent on Thu Dec 22 2022 20:43:43

    I'm not sure exactly what you're trying to accomplish, but if you know the user's alias or real name, it's trivial in JS to replace the spaces in their real name or alias with '.' and append '@' + system.inet_addr to the result and display it to the user.

    I'm hoping to make a message like "newuser.msg" on the web side immediately after the users submits their registration so they'll know their new email address.

    ---
    þ Synchronet þ ANSUN - ansun.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to ansunent on Fri Dec 23 18:22:40 2022
    Re: User's Email Variable Name
    By: ansunent to Digital Man on Fri Dec 23 2022 07:52 pm

    Re: User's Email Variable Name
    By: Digital Man to ansunent on Thu Dec 22 2022 20:43:43

    I'm not sure exactly what you're trying to accomplish, but if you know the user's alias or real name, it's trivial in JS to replace the spaces in their real name or alias with '.' and append '@' + system.inet_addr to the result and display it to the user.

    I'm hoping to make a message like "newuser.msg" on the web side immediately after the users submits their registration so they'll know their new email address.

    Okay, that should be easy to do with the tips I supplied above.
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #76:
    SSJS = Server-side JavaScript
    Norco, CA WX: 60.8øF, 59.0% humidity, 1 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Havok@1:103/705 to Digital Man on Tue Jan 3 11:48:32 2023
    Re: User's Email Variable Name
    By: Digital Man to ansunent on Fri Dec 23 2022 06:22 pm


    Wow I know it maybe all in my mind but v320a seems faster, but then again
    that may be me.

    Only thing I see is when trying to add Synchronet games it is still
    looking for the old file format and not a ini file.

    And when jsexec update it updated: checking 3.19 file bases?
    Checking for 3.20 config files
    Checking for 320 user base

    Other then that on this build seems, fast, fast, fast.

    Thanks!






    -*|04Hav|12o|04k|07*-

    Telnet:|04a|12na|12rchyb|04bs.com:2332
    ---
    þ Synchronet þ Anarchy BBS - anarchybbs.com:2332
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Havok on Tue Jan 3 16:56:49 2023
    Re: SBBS v3.20
    By: Havok to Digital Man on Tue Jan 03 2023 11:48 am

    Re: User's Email Variable Name
    By: Digital Man to ansunent on Fri Dec 23 2022 06:22 pm


    Wow I know it maybe all in my mind but v320a seems faster, but then again
    that may be me.

    Synchronet will by default now use larger packets when running on local networks, so it may very well *be* faster for local logins.

    Only thing I see is when trying to add Synchronet games it is still
    looking for the old file format and not a ini file.

    I think you're referring to this issue: https://gitlab.synchro.net/main/sbbs/-/issues/473

    And when jsexec update it updated: checking 3.19 file bases?
    Checking for 3.20 config files
    Checking for 320 user base

    I'm not sure of your point on those last 3 lines.
    --
    digital man (rob)

    This Is Spinal Tap quote #29:
    I find lost luggage. I locate mandolin strings in the middle of Austin!
    Norco, CA WX: 53.2øF, 97.0% humidity, 0 mph ENE wind, 0.06 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)