fix: remember me not worke in login
This commit is contained in:
@@ -198,18 +198,19 @@ const LoginForm = () => {
|
|||||||
label={intl.formatMessage({ id: 'common.form.password' })}
|
label={intl.formatMessage({ id: 'common.form.password' })}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item noStyle name="autoLogin" valuePropName="checked">
|
|
||||||
<div
|
<div
|
||||||
className="flex-center flex-between"
|
className="flex-center flex-between"
|
||||||
style={{
|
style={{
|
||||||
marginBottom: 24
|
marginBottom: 24
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Form.Item noStyle name="autoLogin" valuePropName="checked">
|
||||||
<Checkbox style={{ marginLeft: 5 }}>
|
<Checkbox style={{ marginLeft: 5 }}>
|
||||||
<span style={{ color: 'var(--ant-color-text-secondary)' }}>
|
<span style={{ color: 'var(--ant-color-text-secondary)' }}>
|
||||||
{intl.formatMessage({ id: 'common.login.rember' })}
|
{intl.formatMessage({ id: 'common.login.rember' })}
|
||||||
</span>
|
</span>
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
|
</Form.Item>
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -220,7 +221,6 @@ const LoginForm = () => {
|
|||||||
{intl.formatMessage({ id: 'common.button.forgotpassword' })}
|
{intl.formatMessage({ id: 'common.button.forgotpassword' })}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Form.Item>
|
|
||||||
<Button
|
<Button
|
||||||
htmlType="submit"
|
htmlType="submit"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|||||||
Reference in New Issue
Block a user