route.query.email as string || '');
const partialWarning = computed(() => route.query.warning === 'partial');
+// Setup password URL for Keycloak
+const setupPasswordUrl = computed(() => {
+ const runtimeConfig = useRuntimeConfig();
+ const keycloakIssuer = runtimeConfig.public.keycloakIssuer || 'https://auth.monacousa.org/realms/monacousa-portal';
+ return `${keycloakIssuer}/account/#/security/signingin`;
+});
+
// Set page title
useHead({
title: 'Email Verified - MonacoUSA Portal',
diff --git a/server/api/members/[id]/create-portal-account.post.ts b/server/api/members/[id]/create-portal-account.post.ts
index 24d5c67..70a8cf5 100644
--- a/server/api/members/[id]/create-portal-account.post.ts
+++ b/server/api/members/[id]/create-portal-account.post.ts
@@ -134,7 +134,12 @@ export default defineEventHandler(async (event) => {
firstName: member.first_name,
lastName: member.last_name,
verificationLink,
- memberId: memberId
+ memberId: memberId,
+ registrationDate: new Date().toLocaleDateString('en-US', {
+ year: 'numeric',
+ month: 'long',
+ day: 'numeric'
+ })
});
emailSent = true;
diff --git a/server/templates/welcome.hbs b/server/templates/welcome.hbs
index a7c6c7a..8cd26c9 100644
--- a/server/templates/welcome.hbs
+++ b/server/templates/welcome.hbs
@@ -180,7 +180,7 @@
Once your email is verified, you'll be able to log in to the portal. To activate your membership, please transfer your annual membership dues:
- - Amount: €50/year
+ - Amount: €150/year
- Payment method: Bank transfer (details in your portal)
- Status: Your account will be activated once payment is verified
diff --git a/server/utils/email.ts b/server/utils/email.ts
index fe0c9aa..9c3de31 100644
--- a/server/utils/email.ts
+++ b/server/utils/email.ts
@@ -21,6 +21,7 @@ export interface WelcomeEmailData {
lastName: string;
verificationLink: string;
memberId: string;
+ registrationDate?: string;
logoUrl?: string;
}