This commit is contained in:
parent
9c7bf086a4
commit
a1ec617c9d
|
|
@ -78,7 +78,7 @@ export default async function Login({
|
||||||
})
|
})
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
return redirect(`${locale}/login?message=${error.message}`)
|
return redirect(`/login?message=${error.message}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { data: homeWorkspace, error: homeWorkspaceError } = await supabase
|
const { data: homeWorkspace, error: homeWorkspaceError } = await supabase
|
||||||
|
|
@ -131,7 +131,7 @@ export default async function Login({
|
||||||
const emailMatch = emailWhitelist?.includes(email)
|
const emailMatch = emailWhitelist?.includes(email)
|
||||||
if (!domainMatch && !emailMatch) {
|
if (!domainMatch && !emailMatch) {
|
||||||
return redirect(
|
return redirect(
|
||||||
`${locale}/login?message=Email ${email} is not allowed to sign up.`
|
`/login?message=Email ${email} is not allowed to sign up.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -150,7 +150,7 @@ export default async function Login({
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
return redirect(`${locale}/login?message=${error.message}`)
|
return redirect(`/login?message=${error.message}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect(`${locale}/setup`)
|
return redirect(`${locale}/setup`)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue