弹窗登录加密传输密码
This commit is contained in:
parent
cc551875d7
commit
bc0028acb9
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue