update auth

This commit is contained in:
Dimas Atmodjo 2024-12-05 15:31:39 +07:00
parent 7e31c5414d
commit 5478b58e2e
2 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@ import { API_URL } from '../../../../utils/Constant';
// }
// };
const login = async (EMAIL, PASSWORD) => {
const login = async (IDENTIFIER, PASSWORD) => {
try {
const response = await axios.post(`${API_URL}/login`, { EMAIL, PASSWORD }, {
const response = await axios.post(`${API_URL}/login`, { IDENTIFIER, PASSWORD }, {
withCredentials: true
});
const { TOKEN, refreshToken } = response.data.payload;

View File

@ -32,7 +32,7 @@ const LoginPage = () => {
<Form className='bg-white form-sm rounded p-4' onSubmit={onSubmit}>
<Form.Group className="mb-3" controlId="formBasicEmail">
<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}
onChange={(e) => setEmail(e.target.value)}
required