Network hub hook (Marty 2026-11-16): sign out everywhere, hub blocks and erases end sessions here; "Sign out everywhere" button
hubevents.js (new, byte-identical in VBB, DLB, ViralAdBlitz, DownlineHydra, 5xYourTeam): POST /api/hub/events, signed by the hub with HUB_SECRET (same hook InstantAdPay and LinkSpin take). member.signedout and member.blocked: the person is looked up by hub id (/v1/resolve, signed as viraladblitz) and their sessions here end (by the main wallet or any contract wallet). member.erased: matched by the wallet SHA-256s (and email SHA-256) the hub now sends with the event. Only sessions made before the event end (a replay never signs anyone out twice); a failed hub lookup answers 503 so the hub resends. Off with HUB_HOOK=0. Admin status: hubEvents (counts only). My Ads: "Sign out everywhere" next to Sign out (POST /api/auth/logout-everywhere -> networksso.signOutEverywhere, then every session of this member here ends). Smoke: section 17 (same cases as the other wallet sites): 231/231 with UI. my.js?v=8 (the spin-link check now expects v=8). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -47,7 +47,7 @@
|
||||
<a href="#earnCard"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M3 12h4l3-8 4 16 3-8h4"/></svg>Payouts</a>
|
||||
<a href="/promote"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M4 12v8h16v-8M12 3v12M7 8l5-5 5 5"/></svg>Promote</a>
|
||||
</nav>
|
||||
<div class="who"><span id="whoVia">Signed in</span><b id="whoName"></b><code id="whoAddr"></code><button class="btn-quiet" id="signout" type="button">Sign out</button></div>
|
||||
<div class="who"><span id="whoVia">Signed in</span><b id="whoName"></b><code id="whoAddr"></code><button class="btn-quiet" id="signout" type="button">Sign out</button><button class="btn-quiet" id="signoutAll" type="button" title="Ends your network sign-in on every network site">Sign out everywhere</button></div>
|
||||
</aside>
|
||||
<div class="dmain">
|
||||
<div class="dtop">
|
||||
@@ -88,6 +88,6 @@
|
||||
<script src="/assets/common.js?v=8"></script>
|
||||
<script src="/assets/chat.js?v=2" defer></script>
|
||||
<script src="/assets/wallet.js?v=6"></script>
|
||||
<script src="/assets/my.js?v=7"></script>
|
||||
<script src="/assets/my.js?v=8"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user