Очистить устаревший черновик регистрации

This commit is contained in:
AidarKC
2026-11-16 10:59:27 +03:00
parent 1b86bca19a
commit 102feccb2e
7 changed files with 71 additions and 72 deletions
+2 -8
View File
@@ -5,6 +5,7 @@ import {
authService,
authorizeSession,
clearAuthMessages,
resetRegistrationFlow,
consumeAuthReturnPage,
refreshSessions,
setAuthBusy,
@@ -157,14 +158,7 @@ export function render({ navigate }) {
state.loginDraft.password = '';
state.loginDraft.passwordMode = 'single';
state.loginDraft.passwordWords = emptyPasswordWords();
state.registrationDraft.flowType = '';
state.registrationDraft.password = '';
state.registrationDraft.passwordMode = 'single';
state.registrationDraft.passwordWords = emptyPasswordWords();
state.registrationDraft.storagePwd = '';
state.registrationDraft.sessionId = '';
state.registrationDraft.pendingKeyBundle = null;
state.registrationDraft.pendingSessionMaterial = null;
resetRegistrationFlow();
await refreshSessions();
setAuthInfo(t('screens.login_password_view.text_010', { value1: result.login }));