v0.5.125: switchTo без редиректа, дебаг на странице

This commit is contained in:
2026-06-15 16:37:29 +04:00
parent 3493d45065
commit ee0cf68fe3
2 changed files with 14 additions and 19 deletions
+8
View File
@@ -139,6 +139,14 @@
</div>
</div>
<% if (typeof switchDebug !== 'undefined' && switchDebug) { %>
<div style="background:#fff3cd;border:2px solid #d97706;color:#92400e;padding:.5rem 1rem;border-radius:8px;margin-bottom:.5rem;font-size:.85rem;">
<strong>DEBUG SWITCH:</strong> <%= switchDebug.from %> → <%= switchDebug.to %>
| sessionID: <%= switchDebug.sessionID %>
| activeClientId: <%= activeClientId %>
</div>
<% } %>
<% if (user.isImpersonated) { %>
<div class="alert alert-warn">
⚠️ Режим имперсонации — данные сохраняются от имени <strong><%= activeClientId %></strong>