SHA256
Очистить устаревший черновик регистрации
This commit is contained in:
@@ -140,22 +140,9 @@ export async function completeRegistrationLogin({ navigate, keyBundle }) {
|
||||
state.loginDraft.passwordMode = 'single';
|
||||
state.loginDraft.passwordWords = EMPTY_PASSWORD_WORDS.slice();
|
||||
|
||||
state.registrationSuccess = { flowType: state.registrationDraft.flowType, login: resumedLogin };
|
||||
state.registrationDraft.flowType = '';
|
||||
state.registrationDraft.password = '';
|
||||
state.registrationDraft.passwordMode = 'single';
|
||||
state.registrationDraft.passwordWords = EMPTY_PASSWORD_WORDS.slice();
|
||||
state.registrationDraft.passwordWordsLinked = false;
|
||||
state.registrationDraft.usePromoCode = false;
|
||||
state.registrationDraft.promoCode = '';
|
||||
state.registrationDraft.storagePwd = '';
|
||||
state.registrationDraft.sessionId = '';
|
||||
state.registrationDraft.pendingKeyBundle = null;
|
||||
state.registrationDraft.pendingSessionMaterial = null;
|
||||
state.registrationDraft.preGeneratedKeyBundle = null;
|
||||
|
||||
state.registrationPayment.walletAddress = '';
|
||||
state.registrationPayment.balanceSOL = '0.0000';
|
||||
const completedFlowType = state.registrationDraft.flowType;
|
||||
resetRegistrationFlow();
|
||||
state.registrationSuccess = { flowType: completedFlowType, login: resumedLogin };
|
||||
|
||||
try {
|
||||
await refreshSessions();
|
||||
|
||||
Reference in New Issue
Block a user