From 35134a51cb98a688e823f7850610a29c08549377 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sat, 27 Jun 2026 16:46:56 +0000 Subject: [PATCH] fix(passwd): tell members to reconnect chat after a reset The Lounge / an IRC client caches the SASL password for an active connection, so a password change only takes effect after the client reconnects. Without a hint this looks like "I reset my password but chat still fails". passwd@ now prints a reminder to /connect (or sign out/in) at chat. when the chat leg ran. --- cmd/agentbbs/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/agentbbs/main.go b/cmd/agentbbs/main.go index 65afca4..fd68bef 100644 --- a/cmd/agentbbs/main.go +++ b/cmd/agentbbs/main.go @@ -1937,6 +1937,13 @@ func (a *app) handlePasswd(s ssh.Session) { if len(ok) == 0 && len(failed) == 0 { wish.Println(s, " (no password-backed services are configured on this server)") } + if a.irc.Configured() { + // An already-open web/IRC client keeps using the OLD SASL password until + // it reconnects, so a change here looks like it "didn't work" mid-session. + wish.Println(s, "") + wish.Println(s, " ↻ chat: if you're already connected at chat."+rootDomain(a.host)+ + ", reconnect (/connect) or sign out and back in to pick up the new password.") + } _, _ = a.st.RecordSession(u.ID, s.User(), remoteIP(s), "passwd")