Исправить повторную авторизацию при входе

This commit is contained in:
AidarKC
2026-09-09 10:23:36 +03:00
parent ae2f2fac41
commit f827c3e493
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
client.version=1.12.2 client.version=1.12.3
server.version=1.10.1 server.version=1.10.1
+1 -1
View File
@@ -113,7 +113,7 @@ export function render({ navigate }) {
enterButton.disabled = true; enterButton.disabled = true;
try { try {
await authService.reconnect(state.entrySettings.shineServer); authService.resetConnection(state.entrySettings.shineServer, { clearSessionContext: true });
// Повторная проверка защищает UI от смены access server между первым экраном и входом. // Повторная проверка защищает UI от смены access server между первым экраном и входом.
const resolved = await authService.resolveLoginForAuth(currentLogin); const resolved = await authService.resolveLoginForAuth(currentLogin);
+1
View File
@@ -1313,6 +1313,7 @@ export async function closeSavedProfile(login) {
if (!next) { if (!next) {
setActiveProfileLoginRaw(''); setActiveProfileLoginRaw('');
clearStoredSession(); clearStoredSession();
authService.resetConnection(state.entrySettings.shineServer, { clearSessionContext: true });
return { closed: true, nextProfile: null }; return { closed: true, nextProfile: null };
} }
setActiveProfileLoginRaw(next.login); setActiveProfileLoginRaw(next.login);