|
|
|
|
@ -150,6 +150,9 @@ var CloseOutlined = __webpack_require__(99267);
|
|
|
|
|
var table = __webpack_require__(1710);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/index.js + 3 modules
|
|
|
|
|
var es_alert = __webpack_require__(46400);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_crypto-js@4.1.1@crypto-js/index.js
|
|
|
|
|
var _crypto_js_4_1_1_crypto_js = __webpack_require__(28209);
|
|
|
|
|
var _crypto_js_4_1_1_crypto_js_default = /*#__PURE__*/__webpack_require__.n(_crypto_js_4_1_1_crypto_js);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/components/User/UnlockLogin/index.tsx
|
|
|
|
|
@ -163,6 +166,7 @@ var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var inputStyle = {
|
|
|
|
|
height: 48,
|
|
|
|
|
borderRadius: 4
|
|
|
|
|
@ -226,23 +230,30 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
}];
|
|
|
|
|
var onFinish = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, from;
|
|
|
|
|
var newValues, iv, ciphertext, res, from;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return form.validateFields();
|
|
|
|
|
case 2:
|
|
|
|
|
_context.next = 4;
|
|
|
|
|
return (0,service_user/* LoginIn */.Es)(objectSpread2_default()(objectSpread2_default()({}, accountInfo), form.getFieldValue()));
|
|
|
|
|
case 4:
|
|
|
|
|
newValues = objectSpread2_default()({}, accountInfo);
|
|
|
|
|
iv = _crypto_js_4_1_1_crypto_js_default().enc.Utf8.parse("5183666c72eec9e4");
|
|
|
|
|
ciphertext = _crypto_js_4_1_1_crypto_js_default().AES.encrypt(accountInfo.password || "", iv, {
|
|
|
|
|
iv: iv,
|
|
|
|
|
mode: (_crypto_js_4_1_1_crypto_js_default()).mode.CBC
|
|
|
|
|
});
|
|
|
|
|
newValues.password = ciphertext.toString();
|
|
|
|
|
_context.next = 8;
|
|
|
|
|
return (0,service_user/* LoginIn */.Es)(objectSpread2_default()(objectSpread2_default()({}, newValues), form.getFieldValue()));
|
|
|
|
|
case 8:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if (!res.status) {
|
|
|
|
|
_context.next = 12;
|
|
|
|
|
_context.next = 16;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (!(res.status === -4)) {
|
|
|
|
|
_context.next = 10;
|
|
|
|
|
_context.next = 14;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
dispatch({
|
|
|
|
|
@ -260,10 +271,10 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context.abrupt("return");
|
|
|
|
|
case 10:
|
|
|
|
|
case 14:
|
|
|
|
|
setErrorValue(res === null || res === void 0 ? void 0 : res.message);
|
|
|
|
|
return _context.abrupt("return");
|
|
|
|
|
case 12:
|
|
|
|
|
case 16:
|
|
|
|
|
setOpenModal(false);
|
|
|
|
|
if (res !== null && res !== void 0 && res.show) {
|
|
|
|
|
localStorage.setItem('extension-modal', 'exist');
|
|
|
|
|
@ -272,35 +283,35 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
localStorage.removeItem('extension-modal');
|
|
|
|
|
}
|
|
|
|
|
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
|
|
|
|
|
_context.next = 29;
|
|
|
|
|
_context.next = 33;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
from = searchParams.get("form") || searchParams.get("back_url");
|
|
|
|
|
if (!from) {
|
|
|
|
|
_context.next = 20;
|
|
|
|
|
_context.next = 24;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
window.location.href = decodeURIComponent(from);
|
|
|
|
|
_context.next = 27;
|
|
|
|
|
_context.next = 31;
|
|
|
|
|
break;
|
|
|
|
|
case 20:
|
|
|
|
|
case 24:
|
|
|
|
|
if (password.test(accountInfo.password)) {
|
|
|
|
|
_context.next = 25;
|
|
|
|
|
_context.next = 29;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
|
|
|
|
|
window.location.href = '/account/secure';
|
|
|
|
|
_context.next = 27;
|
|
|
|
|
_context.next = 31;
|
|
|
|
|
break;
|
|
|
|
|
case 25:
|
|
|
|
|
case 29:
|
|
|
|
|
window.location.reload();
|
|
|
|
|
return _context.abrupt("return");
|
|
|
|
|
case 27:
|
|
|
|
|
_context.next = 37;
|
|
|
|
|
case 31:
|
|
|
|
|
_context.next = 41;
|
|
|
|
|
break;
|
|
|
|
|
case 29:
|
|
|
|
|
case 33:
|
|
|
|
|
if (password.test(accountInfo.password)) {
|
|
|
|
|
_context.next = 35;
|
|
|
|
|
_context.next = 39;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
|
|
|
|
|
@ -311,14 +322,14 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
showPopLogin: false
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
_context.next = 37;
|
|
|
|
|
_context.next = 41;
|
|
|
|
|
break;
|
|
|
|
|
case 35:
|
|
|
|
|
case 39:
|
|
|
|
|
window.location.reload();
|
|
|
|
|
return _context.abrupt("return");
|
|
|
|
|
case 37:
|
|
|
|
|
case 41:
|
|
|
|
|
form.resetFields();
|
|
|
|
|
case 38:
|
|
|
|
|
case 42:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -397,9 +408,6 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
|
|
|
|
|
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var LoginPanelmodules = ({"login-panel-wrapper2":"login-panel-wrapper2___HuMNJ","ant-form-item-explain":"ant-form-item-explain___c1FeE","ant-form-item":"ant-form-item___qb60e","ant-form-item-with-help":"ant-form-item-with-help___NeAwJ","login-panel-right-wrp":"login-panel-right-wrp___vWD_i","res-error-values":"res-error-values___hV1lz","tabs":"tabs___EwOAX"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_crypto-js@4.1.1@crypto-js/index.js
|
|
|
|
|
var _crypto_js_4_1_1_crypto_js = __webpack_require__(28209);
|
|
|
|
|
var _crypto_js_4_1_1_crypto_js_default = /*#__PURE__*/__webpack_require__.n(_crypto_js_4_1_1_crypto_js);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/LoginForm.tsx
|
|
|
|
|
|
|
|
|
|
|