Commit f4a85815 authored by 周宏民's avatar 周宏民

pref: 瑞云登录页添加验证码登录

parent eeceeadc
Pipeline #94476 waiting for manual action with stages
......@@ -53,6 +53,8 @@ const imgList = [
},
];
const Login = forwardRef((props, _ref) => {
const isValidate = (window?.globalConfig?.isVerification || 0) * 1 === 1;
// const isValidate = true;
const sliVerify = useRef();
const loginFormRef = useRef();
const formRef = useRef(null);
......@@ -73,7 +75,9 @@ const Login = forwardRef((props, _ref) => {
/* eslint-disable */
action &&
(type === 'Account'
? action.loginHandler(values.userName, values.password, null, autoLogin, sliVerify)
? isValidate
? action.loginHandlerValidate(values.userName, values.password, null, autoLogin, 'none', values?.validate)
: action.loginHandler(values.userName, values.password, null, autoLogin, sliVerify)
: type === 'Mobile'
? action.phoneLoginFormHandler(values.mobile, values.captcha)
: null);
......@@ -135,7 +139,7 @@ const Login = forwardRef((props, _ref) => {
updateLoginMode: props.updateLoginMode,
welcome: null,
};
return <Account {...params} />;
return <Account {...params} isValidate={isValidate} />;
};
/* eslint-disable */
......@@ -276,7 +280,7 @@ const Login = forwardRef((props, _ref) => {
<div className={classnames(styles['wrapper'])}>
<QueueAnim type="scale" duration={1000}>
<div key={'innerwrapper'} className={classnames(styles['inner-wrapper'])}>
<div className={styles['inner-center']}>
<div className={styles['inner-center']} style={{ height: isValidate ? '400px' : '' }}>
<div className={styles['welcome-title']}>
<img src={icon} />
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment