• web/webmail authentication confusion

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Saturday, November 21, 2026 21:43:47
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1395
    2026-11-21 21:43:47 -0800

    I noticed that if you login through the BBS website it'll also let you in to webmail, but if you logout through the BBS website you still stay logged in to webmail. This could cause users to think they are logged out everywhere but they're not. Especially if accessed as a URL off the main BBS site. Can we have an option to tie both login and logout together for both the BBS and the webmail? Login to one, login to both, and similar for logout. Thanks.
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Saturday, November 21, 2026 23:42:40
    close https://gitlab.synchro.net/main/sbbs/-/work_items/1395
    2026-11-21 23:42:38 -0800
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sunday, November 22, 2026 00:04:13
    https://gitlab.synchro.net/main/sbbs/-/work_items/1395#note_11243

    Both directions are now covered, each with a setting in `ctrl/modopts/webmail.ini`:

    - **Signing out of the web site signs you out of WebMail** (8a0a4c8c9e, knew-4-curious, 2026-11-21). With `webv4_login = true`, a WebMail session that was started from your webv4 sign-in now lasts only as long as that webv4 session. Signing out of webv4, or signing in to webv4 again on another device, ends it.
    - **Signing out of WebMail signs you out of the web site** (bab875ab56, cups-3-stem, 2026-11-22). This needs the new `webv4_logout = true`. Signing out of WebMail then also ends the browser's webv4 session, when it belongs to the same user, however you signed in to WebMail.

    Both work only when WebMail is served on the same host name as webv4 (for example `/webmail/` on the same site), since that is where the browser sends webv4's cookie.

    Signing in to WebMail with a password still does not sign you in to the web site. A WebMail session started that way is also independent of webv4, so signing out of the web site does not end it.

    Details: https://wiki.synchro.net/module:webmail#signing_in_from_webv4

    - *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Sunday, November 22, 2026 00:57:13
    https://gitlab.synchro.net/main/sbbs/-/work_items/1395#note_11247

    This might be for another issue, but could we not have the option to use the same login mechanism for webv4 and webmail and not use what webmail login process at all? I figure this is all one combined site especially if webmail sits under the root and it wouldn't make sense to have a separate login. Basically, the only way to login to webmail, is via the front end webpage, at least as an option.

    I realize people may want to have their own webmail domain and this may not work for them, so trying to see how it can work both ways, if you see what I mean. I still feel if you're going to sign into one site and it signs you into the other, it should work the other way around also.
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sunday, November 22, 2026 01:30:16
    https://gitlab.synchro.net/main/sbbs/-/work_items/1395#note_11249

    Done as a new option, `webv4_only` (9c00441ff9, rated-19-dozen, 2026-11-22):

    - With `webv4_only = true` in `ctrl/modopts/webmail.ini`, WebMail has no sign-in form at all. A user who is not signed in sees "Sign in on the main site, then come back here to read your mail." with a button linking to the site.
    - The button goes to `webv4_url`, which is `/` unless you set it (an `http://` or `https://` address, or a path on the site).
    - WebMail also refuses a password sign-in in this mode, so the only way in is through the web site's sign-in. Your BBS password is never typed into WebMail.
    - `webv4_only` turns on `webv4_login`. Add `webv4_logout = true` as well, and signing out of either one signs you out of both.

    webv4 signs in from its menu bar and does not send you back to the page you came from, so after signing in, users get back to WebMail from the site. A `.link` file in `webv4/mods/pages/` adds WebMail to webv4's menu: https://wiki.synchro.net/module:webmail#a_link_in_the_webv4_menu

    As you said, this suits WebMail served under the main site. On a host name of its own, the browser does not send it webv4's cookie, so with `webv4_only` on no one could sign in there; such a site keeps WebMail's own form.

    Details: https://wiki.synchro.net/module:webmail#signing_in_from_webv4

    - *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)