验证码优化

This commit is contained in:
biss committed 2026-09-12 07:57:27 +08:00
1 parent f489a3553c
commit 4a3bb84aa4
17 files changed
+156 -430

No files matched your search

+4 -4
View File
@@ -31,14 +31,14 @@ export const useAuthStore = defineStore('auth', () => {
async function login(
userName: string,
password: string,
captchaTicket: string,
deviceId: string,
captchaId: string,
captchaCode: string,
): Promise<{ twoFactorTicket?: string }> {
const { data } = await http.post('/auth/login', {
userName,
password,
captchaTicket,
deviceId,
captchaId,
captchaCode,
isNativeApp: isNativeApp(),
})
if (data.requiresTotp) return { twoFactorTicket: String(data.twoFactorTicket) }