|
|
@ -179,7 +179,7 @@ const loginForm = reactive({
|
|
|
|
ignoreCaptcha: true,
|
|
|
|
ignoreCaptcha: true,
|
|
|
|
captcha: '',
|
|
|
|
captcha: '',
|
|
|
|
captchaID: '',
|
|
|
|
captchaID: '',
|
|
|
|
authMethod: '',
|
|
|
|
authMethod: 'session',
|
|
|
|
agreeLicense: false,
|
|
|
|
agreeLicense: false,
|
|
|
|
language: 'zh',
|
|
|
|
language: 'zh',
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -195,7 +195,7 @@ const mfaLoginForm = reactive({
|
|
|
|
password: '',
|
|
|
|
password: '',
|
|
|
|
secret: '',
|
|
|
|
secret: '',
|
|
|
|
code: '',
|
|
|
|
code: '',
|
|
|
|
authMethod: '',
|
|
|
|
authMethod: 'session',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const captcha = reactive({
|
|
|
|
const captcha = reactive({
|
|
|
@ -232,7 +232,7 @@ const login = (formEl: FormInstance | undefined) => {
|
|
|
|
ignoreCaptcha: globalStore.ignoreCaptcha,
|
|
|
|
ignoreCaptcha: globalStore.ignoreCaptcha,
|
|
|
|
captcha: loginForm.captcha,
|
|
|
|
captcha: loginForm.captcha,
|
|
|
|
captchaID: captcha.captchaID,
|
|
|
|
captchaID: captcha.captchaID,
|
|
|
|
authMethod: '',
|
|
|
|
authMethod: 'session',
|
|
|
|
language: loginForm.language,
|
|
|
|
language: loginForm.language,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if (!globalStore.ignoreCaptcha && requestLoginForm.captcha == '') {
|
|
|
|
if (!globalStore.ignoreCaptcha && requestLoginForm.captcha == '') {
|
|
|
|