• exec/tests/webmail/api.js session.js webv4.js webmail/lib/api.js sessi

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Nov 21 23:42:38 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/8a0a4c8c9e24f6d7870d3b05
    Modified Files:
    exec/tests/webmail/api.js session.js webv4.js webmail/lib/api.js session.js webv4.js webmail/root/api.ssjs index.xjs part.ssjs
    Log Message:
    WebMail: signing out of webv4 signs out of WebMail too

    With webv4_login on, a user signed in to the webv4 web interface is
    signed in to WebMail without the sign-in form, but the WebMail session
    that started outlived the webv4 one: signing out of the web site left
    the user signed in to their mail.

    A session started from webv4 now records that (via "webv4"), and its
    stamp also covers the key of the user's webv4 session, read from their data/user/####.web file on each request. When webv4 deletes that key
    (the user signs out of the web site) or replaces it (they sign in to it
    again elsewhere), the stamp no longer matches and the WebMail session
    ends, as a password change already ends every session. Only the digest
    is stored, never the webv4 key. A session started with a password is
    not tied to webv4 and never reads the file.

    Fixes #1395

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net