mirror of https://github.com/langgenius/dify.git
fix: when first setup after auto login error (#30523)
Co-authored-by: maxin <maxin7@xiaomi.com> Co-authored-by: 非法操作 <hjlarry@163.com>
This commit is contained in:
parent
473f8ef29c
commit
2b838077e0
|
|
@ -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),
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue