弹窗登录加密传输密码

This commit is contained in:
谢思 2024-11-25 16:45:29 +08:00 committed by caishi
parent cc551875d7
commit bc0028acb9
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import cookie from 'react-cookies';
import './LoginDialog.css'; import './LoginDialog.css';
import { broadcastChannelPostMessage } from 'educoder' import { broadcastChannelPostMessage } from 'educoder'
import Notcompletedysl from "../user/Notcompletedysl"; import Notcompletedysl from "../user/Notcompletedysl";
import { Encrypt } from '../../common/Env';
const $ = window.$; const $ = window.$;
var wait = 60; var wait = 60;
@ -371,7 +372,7 @@ class LoginDialog extends Component {
let url = '/accounts/login.json' let url = '/accounts/login.json'
axios.post(url, { axios.post(url, {
login: newloginValue, login: newloginValue,
password: newpassValue, password: Encrypt(newpassValue),
autologin: isGoingValue autologin: isGoingValue
} }
).then((response) => { ).then((response) => {