Skip to content

Commit 7c27be5

Browse files
authored
Merge pull request #23 from code-kern-ai/remove-gates
Remove gates
2 parents 3caf59a + 76bb75b commit 7c27be5

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

pages/login.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const Login: NextPage = () => {
121121
return
122122
}
123123
if (MiscInfo.isManaged) {
124-
router.push("/welcome")
124+
router.push("/cognition")
125125
} else {
126126
router.push("/refinery/projects")
127127
}

pages/settings.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const Settings: NextPage = () => {
194194
</div>) : (<> </>)}
195195

196196
<div className="link-container">
197-
<a className="link" data-testid="forgot-password" href="/welcome">Back</a>
197+
<a className="link" data-testid="forgot-password" href="/cognition">Back</a>
198198
</div>
199199
</div>
200200
</div>

pkg/errors.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function handleGetFlowError<S>(
1717
return
1818
case "session_already_available":
1919
// User is already signed in, let's redirect them home!
20-
await router.push("/welcome")
20+
await router.push("/cognition")
2121
return
2222
case "session_refresh_required":
2323
// We need to re-authenticate to perform this action
@@ -27,13 +27,13 @@ export function handleGetFlowError<S>(
2727
// The flow expired, let's request a new one.
2828
toast.error("The return_to address is not allowed.")
2929
resetFlow(undefined)
30-
await router.push("/welcome" + flowType)
30+
await router.push("/cognition" + flowType)
3131
return
3232
case "self_service_flow_expired":
3333
// The flow expired, let's request a new one.
3434
toast.error("Your interaction expired, please fill out the form again.")
3535
resetFlow(undefined)
36-
await router.push("/welcome" + flowType)
36+
await router.push("/cognition" + flowType)
3737
return
3838
case "security_csrf_violation":
3939
// A CSRF violation occurred. Best to just refresh the flow!
@@ -46,7 +46,7 @@ export function handleGetFlowError<S>(
4646
case "security_identity_mismatch":
4747
// The requested item was intended for someone else. Let's request a new flow...
4848
resetFlow(undefined)
49-
await router.push("/welcome" + flowType)
49+
await router.push("/cognition" + flowType)
5050
return
5151
case "browser_location_change_required":
5252
// Ory Kratos asked us to point the user to this URL.
@@ -58,7 +58,7 @@ export function handleGetFlowError<S>(
5858
case 410:
5959
// The flow expired, let's request a new one.
6060
resetFlow(undefined)
61-
await router.push("/welcome" + flowType)
61+
await router.push("/cognition" + flowType)
6262
return
6363
}
6464

0 commit comments

Comments
 (0)