Skip to content

Commit d3bb817

Browse files
committed
chore: save sensitive onboarding changes before PR PapillonApp#742 merge
1 parent 133d0b1 commit d3bb817

7 files changed

Lines changed: 7 additions & 38 deletions

File tree

app/(onboarding)/restaurants/alise.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ export default function AliseLoginWithCredentials() {
100100
updatedAt: (new Date()).toISOString(),
101101
});
102102
store.setLastUsedAccount(accountId);
103-
return router.push({
104-
pathname: "../end/color",
105-
params: { accountId },
106-
});
103+
return router.push("/index");
107104
} catch (error) {
108105
alert.showAlert({
109106
title: t("Alert_Auth_Error"),

app/(onboarding)/restaurants/turboselfHost.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,7 @@ export default function TurboSelfSelectHost() {
246246
})
247247

248248
store.setLastUsedAccount(accountId)
249-
return router.push({
250-
pathname: "../end/color",
251-
params: {
252-
accountId
253-
}
254-
});
249+
return router.push("/index");
255250
}}>
256251
<Stack
257252
hAlign="center"

app/(onboarding)/services/appscho/credentials.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ export default function AppSchoCredentials() {
126126

127127
store.setLastUsedAccount(id);
128128

129-
return router.push({
130-
pathname: "/(onboarding)/end/color",
131-
params: {
132-
accountId: id,
133-
},
134-
});
129+
return router.push("/index");
135130
} catch (error) {
136131
alert.showAlert({
137132
title: t("Alert_Auth_Error"),

app/(onboarding)/services/appscho/webview.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,7 @@ export default function AppschoWebView() {
5858

5959
store.setLastUsedAccount(id);
6060

61-
return router.push({
62-
pathname: "/(onboarding)/end/color",
63-
params: {
64-
accountId: id,
65-
},
66-
});
61+
return router.push("/index");
6762
} catch (error) {
6863
Error(`OAuth login error: ${error}`);
6964
alert.showAlert({

app/(onboarding)/services/ed/credentials.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,7 @@ export default function EDLoginWithCredentials() {
271271
store.setLastUsedAccount(device);
272272

273273
queueMicrotask(() => {
274-
router.push({
275-
pathname: "../end/color",
276-
params: { accountId: device },
277-
});
274+
router.push("/index");
278275
});
279276
}
280277
} catch (e) {

app/(onboarding)/services/pronote/2fa.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,7 @@ export function Pronote2FAModal({ doubleAuthSession, doubleAuthError, setChallen
8282
store.addAccount(account)
8383
store.setLastUsedAccount(deviceId)
8484

85-
router.push({
86-
pathname: "../end/color",
87-
params: {
88-
accountId: deviceId
89-
}
90-
});
85+
router.push("/index");
9186
} catch (error) {
9287
return alert.showAlert({
9388
title: t("Alert_Auth_Error"),

app/(onboarding)/services/pronote/qrcode.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,7 @@ export default function PronoteLoginWithQR() {
122122
useAccountStore.getState().setLastUsedAccount(accountID)
123123
setTimeout(() => {
124124
setLoadingModalVisible(false);
125-
router.push({
126-
pathname: "../end/color",
127-
params: {
128-
accountId: accountID
129-
}
130-
});
125+
router.push("/index");
131126
}, 1000);
132127
} catch (error) {
133128
console.error(error);

0 commit comments

Comments
 (0)