dev_aliyun2
harry 5 years ago
parent 2388f4531f
commit 4ced85c494

@ -1,3 +1,4 @@
import React, { Component } from 'react';
import { notification } from 'antd';
@ -373,20 +374,6 @@ class LoginDialog extends Component {
if (response === undefined) {
return
}
let newloginValue=loginValue.replace(/(^\s*)|(\s*$)/g, "");
let newpassValue=passValue.replace(/(^\s*)|(\s*$)/g, "");
let url='/accounts/login.json'
axios.post(url, {
login:newloginValue,
password:newpassValue,
autologin:isGoingValue
}
).then((response) => {
if(response===undefined){
return
}
if (response.status === 200) {
if (response.data.status === 402) {

Loading…
Cancel
Save