hardcode signin
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Flex, Input, Form, Button, Card, Space, Image } from 'antd';
|
import { Flex, Input, Form, Button, Card, Space, Image } from 'antd';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { NotifAlert, NotifOk } from '../../components/Global/ToastNotif';
|
import { NotifAlert } from '../../components/Global/ToastNotif';
|
||||||
import { SendRequest } from '../../components/Global/ApiRequest';
|
import { SendRequest } from '../../components/Global/ApiRequest';
|
||||||
import bg_cod from 'assets/bg_cod.jpg';
|
import bg_cod from 'assets/bg_cod.jpg';
|
||||||
import logo from 'assets/freepik/LOGOPIU.png';
|
import logo from 'assets/freepik/LOGOPIU.png';
|
||||||
@@ -12,6 +12,12 @@ const SignIn = () => {
|
|||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
const defaultSignIn = {
|
||||||
|
identifier: 'superadmin@cod.com',
|
||||||
|
password: '@Superadmin123',
|
||||||
|
captcha: '',
|
||||||
|
};
|
||||||
|
|
||||||
const moveToSignUp = () => {
|
const moveToSignUp = () => {
|
||||||
navigate('/signup');
|
navigate('/signup');
|
||||||
};
|
};
|
||||||
@@ -103,7 +109,12 @@ const SignIn = () => {
|
|||||||
<Image src={logo} height={150} width={220} preview={false} alt="logo" />
|
<Image src={logo} height={150} width={220} preview={false} alt="logo" />
|
||||||
</Flex>
|
</Flex>
|
||||||
<br />
|
<br />
|
||||||
<Form layout="vertical" style={{ width: '250px' }} onFinish={handleOnSubmit}>
|
<Form
|
||||||
|
layout="vertical"
|
||||||
|
style={{ width: '250px' }}
|
||||||
|
onFinish={handleOnSubmit}
|
||||||
|
initialValues={defaultSignIn}
|
||||||
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="Email / Username"
|
label="Email / Username"
|
||||||
name="identifier"
|
name="identifier"
|
||||||
|
|||||||
Reference in New Issue
Block a user