|
|
|
@ -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) {
|
|
|
|
|