fix: the page redirects to the activation page, so that we can recheck the invite_token after the password has been reset

This commit is contained in:
NFish 2024-09-29 15:43:35 +08:00
parent 0b0e0e3c2a
commit 64f15880a2

View File

@ -32,8 +32,8 @@ const ChangePasswordForm = () => {
const getSignInUrl = () => {
if (searchParams.has('invite_token')) {
const params = new URLSearchParams()
params.set('invite_token', searchParams.get('invite_token') as string)
return `/signin?${params.toString()}`
params.set('token', searchParams.get('invite_token') as string)
return `/activate?${params.toString()}`
}
return '/signin'
}