From 1dcd23a7767c171a88908a44890d67e97f28fbea Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Fri, 7 Nov 2025 19:50:08 +0000 Subject: [PATCH] fix: update Google clientId in config and change default user picture path --- Web/public/config.json | 2 +- Web/src/app/services/authentication.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Web/public/config.json b/Web/public/config.json index 4aa6a51..db81eac 100755 --- a/Web/public/config.json +++ b/Web/public/config.json @@ -6,7 +6,7 @@ "issuer": "https://login.microsoftonline.com/4a0d328f-1f94-4920-b67e-4275737d02a5/v2.0" }, "google": { - "clientId": "1000025801082-09qojecdodogc3j8g32d6case1chtb25.apps.googleusercontent.com", + "clientId": "1000025801082-09ikmt61a9c9vbdjhpdab9b0ui3vdnij.apps.googleusercontent.com", "issuer": "https://accounts.google.com", "dummyClientSecret": "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" }, diff --git a/Web/src/app/services/authentication.service.ts b/Web/src/app/services/authentication.service.ts index c7ec257..1af64bc 100644 --- a/Web/src/app/services/authentication.service.ts +++ b/Web/src/app/services/authentication.service.ts @@ -84,7 +84,7 @@ export class AuthenticationService { name: user.name || (user.firstName && user.lastName ? `${user.firstName} ${user.lastName}` : user.firstName || user.lastName || user.email), - picture: user.picture || user.profilePictureUrl || 'https://via.placeholder.com/150?text=User', + picture: user.picture || user.profilePictureUrl || '/assets/images/profile/user-1.jpg', role: user.role || 'Používateľ' }; this.profile = enhancedUser; @@ -103,7 +103,7 @@ export class AuthenticationService { name: user.firstName && user.lastName ? `${user.firstName} ${user.lastName}` : user.firstName || user.lastName || user.email, - picture: user.profilePictureUrl || 'https://via.placeholder.com/150?text=User', // Default avatar + picture: user.profilePictureUrl || '/assets/images/profile/user-1.jpg', // Default avatar role: 'Používateľ' // Default role in Slovak };