Commit c80ff9f4 authored by wuhao's avatar wuhao 🎯

ader

parent 2ede76bc
...@@ -76,12 +76,10 @@ const Login = () => { ...@@ -76,12 +76,10 @@ const Login = () => {
mode: ECB, mode: ECB,
padding: Pkcs7, padding: Pkcs7,
}).toString(); }).toString();
let password = AES.encrypt(values.password, Utf8.parse(timestamp), { let password = AES.encrypt(values.password, Utf8.parse(timestamp), {
mode: ECB, mode: ECB,
padding: Pkcs7, padding: Pkcs7,
}).toString(); }).toString();
const postdata = { const postdata = {
accountName: values.userName, accountName: values.userName,
password: password, password: password,
...@@ -111,7 +109,7 @@ const Login = () => { ...@@ -111,7 +109,7 @@ const Login = () => {
const handleSubmit = async (values) => { const handleSubmit = async (values) => {
if (tabkey == "1") { if (tabkey == "1") {
await handleLogin() await handleLogin(values)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment