This commit is contained in:
zhang zhuo 2026-01-25 09:45:14 +08:00
parent 081500f37c
commit e42e0444c3
1 changed files with 3 additions and 3 deletions

View File

@ -186,10 +186,10 @@ async function login() {
}
isLogin.value = true
const data = {
username: tools.rsa.encrypt(form.value.username),
password: tools.rsa.encrypt(tools.md5(form.value.password)),
username: tools.rsa.encrypt(form.value.username, sysConfig.RSA_PUBLIC_KEY),
password: tools.rsa.encrypt(tools.md5(form.value.password), sysConfig.RSA_PUBLIC_KEY),
uuid: form.value.uuid,
code: tools.rsa.encrypt(form.value.code)
code: tools.rsa.encrypt(form.value.code, sysConfig.RSA_PUBLIC_KEY)
}
//
const [res, err] = await tools.go(api.auth.login(data))