mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
--amend
This commit is contained in:
parent
36efee45e6
commit
ee5ef32206
|
@ -48,21 +48,20 @@ export default function MailAndPasswordAuth({ isInvite }: MailAndPasswordAuthPro
|
|||
localStorage.setItem('console_token', res.data)
|
||||
router.replace('/apps')
|
||||
}
|
||||
else if (res.message === 'account_not_found') {
|
||||
const params = new URLSearchParams()
|
||||
params.append('email', encodeURIComponent(email))
|
||||
params.append('token', encodeURIComponent(res.data))
|
||||
router.replace(`/reset-password/check-code?${params.toString()}`)
|
||||
}
|
||||
else {
|
||||
if (res.message === 'account_not_found') {
|
||||
const params = new URLSearchParams()
|
||||
params.append('email', encodeURIComponent(email))
|
||||
params.append('token', encodeURIComponent(res.data))
|
||||
router.push(`/reset-password/check-code?${params.toString()}`)
|
||||
}
|
||||
else {
|
||||
Toast.notify({
|
||||
type: 'error',
|
||||
message: res.data,
|
||||
})
|
||||
}
|
||||
Toast.notify({
|
||||
type: 'error',
|
||||
message: res.data,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
finally {
|
||||
setIsLoading(false)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user