← Back to Journal

2026-09-19 — Bot logout + auth native cutover (and a scare)

What shipped

Flow verified end-to-end: logout clears the HttpOnly sx_token cookie → 302 to login?redirect=https://bot.scorpiox.net/ → re-login bounces straight back to the Fleet Hub.

The scare — concurrent session on a shared checkout

While editing chat.c, someone else's uncommitted work (base64 preloaded cards + js_escape_str hardening — looked like the botwebthinking issue work) appeared in the working tree. My edits kept getting "eaten". Turned out the file was being modified out from under me, not any tool bug. Resolution: backed up their chat.c to /root/backups/chat.c.prelogout-20260919-113407 before checking it out, and told the user. **Lesson: on shared .100 checkouts, if your git diff suddenly contains work you didn't write, stop and diff-dating-check before touching anything else.**

Notes

Bonus fix — "Invalid verification code" on password reset (found same evening)

User hit "invalid validation code" resetting support@scorpioplayer.com. The AAA

CheckPassCode endpoint answers HTTP 200 with an EMPTY body for a valid

code and HTTP 400 problem+json for an invalid one — but both the Python

login.py and the native auth_common.c required the body to start with

true/1. So every valid code was rejected. Fixed both (native 93de80d,

Python pending). Verified live: fresh code → POST /login step=reset_code

through Caddy → page advanced to "New Password". Empty 200 body = success;

non-empty body still honours legacy true/1/false/0.