From ab029438fbf31baa39e257921fc446805ab5cbde Mon Sep 17 00:00:00 2001 From: rockyeverlast Date: Thu, 3 Apr 2025 14:45:48 +0530 Subject: [PATCH] updated testing .env file --- .env | 6 ++++-- src/Pages/Login.tsx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 5754764..e73dab8 100644 --- a/.env +++ b/.env @@ -4,8 +4,10 @@ # VITE_PASSWORD="71%@L%es^bUX94`J9XT*@bh,._WWM{$%^^&&" # VITE_APP_NAME=MyViteApp # VITE_IMG_TEMPLATES='https://ssa.betadelivery.com/storage/app/public/uploads/post_templates/' -VITE_API_URL='https://ssa.betadelivery.com/testing/apia/v1' +# VITE_API_URL='https://ssa.betadelivery.com/testing/apia/v1' +VITE_API_URL='https://ssa.betadelivery.com/apia/v1' VITE_USER_NAME="Admin" -VITE_PASSWORD="71%@L%es^bUX94`J9XT*@bh,._WWM{$%^^&&" +# VITE_PASSWORD="71%@L%es^bUX94`J9XT*@bh,._WWM{$%^^&&" +VITE_PASSWORD="71%@L%es^bUX94`J9XT*%4&^%tUU^%Q^ffgt" VITE_APP_NAME=MyViteApp VITE_IMG_TEMPLATES='https://ssa.betadelivery.com/storage/app/public/uploads/post_templates/' \ No newline at end of file diff --git a/src/Pages/Login.tsx b/src/Pages/Login.tsx index 8a749ef..a023088 100644 --- a/src/Pages/Login.tsx +++ b/src/Pages/Login.tsx @@ -46,7 +46,7 @@ const Login = () => { // Encode Basic Auth Credentials const username = import.meta.env.VITE_USER_NAME || ""; // Replace with actual username const password = import.meta.env.VITE_PASSWORD || ""; // Replace with actual password - const basicAuth = `${username} : ${password}`; // Encode to Base64 + const basicAuth = `${username}:${password}`; // Encode to Base64 try { const res = await axios.post(