mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
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:
parent
0b0e0e3c2a
commit
64f15880a2
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user