This commit is contained in:
2025-10-16 13:11:24 +07:00
parent a4f7eaf422
commit c0f7b8eeb4

View File

@@ -7,6 +7,7 @@ import bg_cod from 'assets/bg_cod.jpg';
import logo from 'assets/freepik/LOGOPIU.png'; import logo from 'assets/freepik/LOGOPIU.png';
const SignIn = () => { const SignIn = () => {
const [form] = Form.useForm();
const [captchaSvg, setCaptchaSvg] = useState(''); const [captchaSvg, setCaptchaSvg] = useState('');
const [captchaText, setCaptchaText] = useState(''); const [captchaText, setCaptchaText] = useState('');
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
@@ -110,6 +111,7 @@ const SignIn = () => {
</Flex> </Flex>
<br /> <br />
<Form <Form
form={form}
layout="vertical" layout="vertical"
style={{ width: '250px' }} style={{ width: '250px' }}
onFinish={handleOnSubmit} onFinish={handleOnSubmit}
@@ -136,7 +138,10 @@ const SignIn = () => {
<Input.Password placeholder="Password" size="large" /> <Input.Password placeholder="Password" size="large" />
</Form.Item> </Form.Item>
<div dangerouslySetInnerHTML={{ __html: captchaSvg }} /> <div
style={{ textAlign: 'center' }}
dangerouslySetInnerHTML={{ __html: captchaSvg }}
/>
<Form.Item <Form.Item
label="CAPTCHA" label="CAPTCHA"