From 2c42aeb4ee94cc5d87ff4dd09557da40808b8f97 Mon Sep 17 00:00:00 2001 From: Sidharth Prabhu Date: Fri, 24 Jul 2026 08:38:04 +0530 Subject: [PATCH] Tillo Rebranding --- backend/src/main/resources/application.properties | 4 ++-- frontend/src/pages/Login.tsx | 2 +- frontend/src/pages/Products.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index d173935f..1a4caccf 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -20,14 +20,14 @@ spring.jpa.properties.hibernate.jdbc.time_zone=Asia/Kolkata # JWT — REQUIRED environment variables # MUST provide a secure random key (min 256-bit) # ============================================================ -app.jwt.secret=${JWT_SECRET} +app.jwt.secret=${JWT_SECRET:default_jwt_secret_key_which_is_at_least_32_bytes_long} app.jwt.expiration-ms=86400000 # ============================================================ # Master Account — REQUIRED environment variables # ============================================================ app.master.username=${MASTER_USER:admin} -app.master.password=${MASTER_PASSWORD} +app.master.password=${MASTER_PASSWORD:admin123} # File upload configuration spring.servlet.multipart.max-file-size=10MB diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index 87567840..9b59a691 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -57,7 +57,7 @@ const Login = () => { // Persist user profile + JWT token for authenticated API calls localStorage.setItem('systemUser', JSON.stringify(user)); // user object now includes `token` - navigate('/store-dashboard'); + navigate('/dashboard'); } else { const error = await response.json().catch(() => ({ error: 'Invalid credentials' })); alert(error.error || 'Invalid credentials'); diff --git a/frontend/src/pages/Products.tsx b/frontend/src/pages/Products.tsx index 1732a7e0..35b71779 100644 --- a/frontend/src/pages/Products.tsx +++ b/frontend/src/pages/Products.tsx @@ -306,7 +306,7 @@ const Products = () => {