Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: when first setup after auto login error (#30523)

sszaodian2b838077e0c8
diff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsx
index 5288ba3ad21..c43fbb4251d 100644
--- a/web/app/install/installForm.tsx
+++ b/web/app/install/installForm.tsx
@@ -19,6 +19,7 @@ import { useDocLink } from '@/context/i18n'
import useDocumentTitle from '@/hooks/use-document-title'
import { fetchInitValidateStatus, fetchSetupStatus, login, setup } from '@/service/common'
import { cn } from '@/utils/classnames'
+import { encryptPassword as encodePassword } from '@/utils/encryption'
import Loading from '../components/base/loading'
const accountFormSchema = z.object({
@@ -68,7 +69,7 @@ const InstallForm = () => {
url: '/login',
body: {
email: data.email,
- password: data.password,
+ password: encodePassword(data.password),
},
})