From 4ced85c494819a1971a07b8400cf500c4756135f Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 14 Mar 2020 21:09:57 +0800 Subject: [PATCH] fix --- public/react/src/modules/login/LoginDialog.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js index 6e5b171e3..9821f0483 100644 --- a/public/react/src/modules/login/LoginDialog.js +++ b/public/react/src/modules/login/LoginDialog.js @@ -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) {