From 5478b58e2e8e9e1c63d28bb086331f6b50affd13 Mon Sep 17 00:00:00 2001 From: Dimas Atmodjo Date: Thu, 5 Dec 2024 15:31:39 +0700 Subject: [PATCH] update auth --- src/roles/guest/auth/services/authService.jsx | 4 ++-- src/roles/guest/auth/views/Login.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/roles/guest/auth/services/authService.jsx b/src/roles/guest/auth/services/authService.jsx index c20c69c..3307f0f 100644 --- a/src/roles/guest/auth/services/authService.jsx +++ b/src/roles/guest/auth/services/authService.jsx @@ -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; diff --git a/src/roles/guest/auth/views/Login.jsx b/src/roles/guest/auth/views/Login.jsx index 8f40402..930e60f 100644 --- a/src/roles/guest/auth/views/Login.jsx +++ b/src/roles/guest/auth/views/Login.jsx @@ -32,7 +32,7 @@ const LoginPage = () => {
Email Address * - setEmail(e.target.value)} required