验证码优化
This commit is contained in:
1 parent
f489a3553c
commit
4a3bb84aa4
17 files changed
+156
-430
No files matched your search
@@ -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) }
|
||||
|
||||
Reference in new issue
Block a user