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:
sszaodian 2026-01-04 20:24:49 +08:00 committed by GitHub
parent 473f8ef29c
commit 2b838077e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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),
},
})