diff --git a/components/PhoneInputWrapper.vue b/components/PhoneInputWrapper.vue index 9c2b1d2..233f1f5 100644 --- a/components/PhoneInputWrapper.vue +++ b/components/PhoneInputWrapper.vue @@ -34,8 +34,6 @@ 'country-selector--open': dropdownOpen, 'country-selector--mobile': isMobile }" - @click="toggleDropdown" - @touchstart="handleTouchStart" > + + + + mdi-check-circle +

+ Registration Successful! +

+
+ + + +
+ + mdi-account-check + + +

+ Welcome to MonacoUSA Association! +

+ +

+ Your membership application has been submitted successfully. +

+ + + mdi-identifier + Member ID: {{ memberData.memberId }} + +
+ + + + +
+

+ mdi-format-list-checks + Next Steps +

+ + + + +
+ Registration Complete +

+ Your account has been created in our system. +

+
+
+ + + +
+ Check Your Email +

+ We've sent a verification email to {{ memberData?.email }}. + Click the link in the email to verify your account and set your password. +

+
+
+ + + +
+ Pay Membership Dues +

+ Transfer your annual membership dues using the banking details below. +

+
+
+ + + +
+ Account Activation +

+ Once payment is verified, your account will be activated and you can access the member portal. +

+
+
+
+
+ + + + +
+

+ mdi-bank + Payment Instructions +

+ + + + + Amount: + + + €{{ paymentInfo?.membershipFee || '50' }}/year + + + + + + IBAN: + + +
+ {{ paymentInfo.iban }} + +
+
+
+ + + + Account: + + + {{ paymentInfo.accountHolder }} + + + + + + Reference: + + + Member {{ memberData?.memberId || 'Registration' }} + + +
+
+ + + + +
    +
  • Check your spam folder if you don't receive the verification email within 10 minutes
  • +
  • Your membership will be activated within 2-3 business days after payment verification
  • +
  • Contact our administrators if you need assistance with the verification process
  • +
+
+ + + + IBAN copied to clipboard! + +
+ + + + + Close + + + mdi-login + Go to Login + + +
+
+ + + + + diff --git a/pages/signup.vue b/pages/signup.vue index 0f3b69c..1661bff 100644 --- a/pages/signup.vue +++ b/pages/signup.vue @@ -144,16 +144,6 @@ {{ errorMessage }} - - - Registration Successful! - {{ successMessage }} - + + + @@ -232,8 +230,7 @@ import type { RegistrationFormData, RecaptchaConfig, RegistrationConfig } from ' // Page metadata definePageMeta({ - layout: false, - middleware: 'guest' + layout: false }); // Head configuration @@ -271,6 +268,10 @@ const recaptchaToken = ref(''); const successMessage = ref(''); const errorMessage = ref(''); +// Success dialog state +const showSuccessDialog = ref(false); +const registrationResult = ref<{ memberId: string; email: string } | null>(null); + // Configs const recaptchaConfig = ref({ siteKey: '', secretKey: '' }); const registrationConfig = ref({ @@ -357,7 +358,15 @@ async function submitRegistration() { }) as any; if (response?.success) { - successMessage.value = response.message || 'Registration successful!'; + // Set registration result data for dialog + registrationResult.value = { + memberId: response.data?.memberId || 'N/A', + email: form.value.email + }; + + // Show success dialog instead of just alert + showSuccessDialog.value = true; + // Reset form by resetting individual refs firstName.value = ''; lastName.value = ''; @@ -383,6 +392,11 @@ async function submitRegistration() { } } +// Navigation methods +const goToLogin = () => { + navigateTo('/login'); +}; + // Load configurations on mount onMounted(async () => { try { diff --git a/server/api/admin/recaptcha-config.post.ts b/server/api/admin/recaptcha-config.post.ts index 19225b0..ca41bb9 100644 --- a/server/api/admin/recaptcha-config.post.ts +++ b/server/api/admin/recaptcha-config.post.ts @@ -1,3 +1,5 @@ +import { createSessionManager } from '~/server/utils/session'; + export default defineEventHandler(async (event) => { console.log('[api/admin/recaptcha-config.post] ========================='); console.log('[api/admin/recaptcha-config.post] POST /api/admin/recaptcha-config - Save reCAPTCHA configuration'); diff --git a/server/api/admin/registration-config.post.ts b/server/api/admin/registration-config.post.ts index 3096e0f..6cc976c 100644 --- a/server/api/admin/registration-config.post.ts +++ b/server/api/admin/registration-config.post.ts @@ -1,3 +1,5 @@ +import { createSessionManager } from '~/server/utils/session'; + export default defineEventHandler(async (event) => { console.log('[api/admin/registration-config.post] ========================='); console.log('[api/admin/registration-config.post] POST /api/admin/registration-config - Save registration configuration');