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