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

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
@@ -83,6 +83,9 @@ async function simulateCompletion({ headerFails = false } = {}) {
authorizeSession: ({ login }) => calls.push(['authorized', login]),
refreshSessions: async () => calls.push(['refreshed']),
setAuthInfo: () => calls.push(['info']),
resetRegistrationFlow: () => {
state.registrationDraft.password = '';
},
console: { warn: (...args) => calls.push(['warning', ...args]) },
};
const func = vm.runInNewContext(`async function completeRegistrationLogin${finish}\ncompleteRegistrationLogin`, context);