update auth
This commit is contained in:
parent
7e31c5414d
commit
5478b58e2e
|
|
@ -12,9 +12,9 @@ import { API_URL } from '../../../../utils/Constant';
|
||||||
// }
|
// }
|
||||||
// };
|
// };
|
||||||
|
|
||||||
const login = async (EMAIL, PASSWORD) => {
|
const login = async (IDENTIFIER, PASSWORD) => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(`${API_URL}/login`, { EMAIL, PASSWORD }, {
|
const response = await axios.post(`${API_URL}/login`, { IDENTIFIER, PASSWORD }, {
|
||||||
withCredentials: true
|
withCredentials: true
|
||||||
});
|
});
|
||||||
const { TOKEN, refreshToken } = response.data.payload;
|
const { TOKEN, refreshToken } = response.data.payload;
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ const LoginPage = () => {
|
||||||
<Form className='bg-white form-sm rounded p-4' onSubmit={onSubmit}>
|
<Form className='bg-white form-sm rounded p-4' onSubmit={onSubmit}>
|
||||||
<Form.Group className="mb-3" controlId="formBasicEmail">
|
<Form.Group className="mb-3" controlId="formBasicEmail">
|
||||||
<Form.Label>Email Address <span className='text-danger'>*</span></Form.Label>
|
<Form.Label>Email Address <span className='text-danger'>*</span></Form.Label>
|
||||||
<Form.Control type="email" placeholder="Email Address"
|
<Form.Control type="text" placeholder="Email Address"
|
||||||
value={email}
|
value={email}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
required
|
required
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user