Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: update reset password token when email code verify success (#18364)
NFish7ba3e599d299
diff --git a/web/app/reset-password/check-code/page.tsx b/web/app/reset-password/check-code/page.tsxindex c6242b45040..480b5131122 100644--- a/web/app/reset-password/check-code/page.tsx+++ b/web/app/reset-password/check-code/page.tsx@@ -39,7 +39,11 @@ export default function CheckCode() {}setIsLoading(true)const ret = await verifyResetPasswordCode({ email, code, token })- ret.is_valid && router.push(`/reset-password/set-password?${searchParams.toString()}`)+ if (ret.is_valid) {+ const params = new URLSearchParams(searchParams)+ params.set('token', encodeURIComponent(ret.token))+ router.push(`/reset-password/set-password?${params.toString()}`)+ }}catch (error) { console.error(error) }finally {diff --git a/web/service/common.ts b/web/service/common.tsindex 9e0ea4aef11..e76cfb4196a 100644--- a/web/service/common.ts+++ b/web/service/common.ts@@ -338,7 +338,7 @@ export const sendResetPasswordCode = (email: string, language = 'en-US') =>post<CommonResponse & { data: string; message?: string; code?: string }>('/forgot-password', { body: { email, language } })export const verifyResetPasswordCode = (body: { email: string; code: string; token: string }) =>- post<CommonResponse & { is_valid: boolean }>('/forgot-password/validity', { body })+ post<CommonResponse & { is_valid: boolean; token: string }>('/forgot-password/validity', { body })export const sendDeleteAccountCode = () =>get<CommonResponse & { data: string }>('/account/delete/verify')