This commit is contained in:
parent
49a5974652
commit
b68bd20272
|
|
@ -93,7 +93,7 @@ export default async function Login({
|
|||
|
||||
if (!homeWorkspace) {
|
||||
throw new Error(
|
||||
homeWorkspaceError?.message || "An unexpected error occurred"
|
||||
homeWorkspaceError?.message || t("login.unexpectedError")
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -134,7 +134,8 @@ export default async function Login({
|
|||
const emailMatch = emailWhitelist?.includes(email)
|
||||
if (!domainMatch && !emailMatch) {
|
||||
return redirect(
|
||||
`/${localeString}/login?message=Email ${email} is not allowed to sign up.`
|
||||
// `/${localeString}/login?message=Email ${email} is not allowed to sign up.`
|
||||
`/${localeString}/login?message=${t("login.signupNotAllowed", { email })}`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -179,7 +180,7 @@ export default async function Login({
|
|||
return redirect(`/${localeString}/login?message=${error.message}`)
|
||||
}
|
||||
|
||||
return redirect(`/${localeString}/login?message=Check email to reset password`)
|
||||
return redirect(`/${localeString}/login?message=${t("login.checkEmailToReset")}`)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue