diff --git a/AquaNet/src/App.svelte b/AquaNet/src/App.svelte index 8e5a8944..8483a0b4 100644 --- a/AquaNet/src/App.svelte +++ b/AquaNet/src/App.svelte @@ -79,7 +79,7 @@ - + diff --git a/AquaNet/src/pages/Welcome.svelte b/AquaNet/src/pages/Welcome.svelte index d655c93b..2e2d1d04 100644 --- a/AquaNet/src/pages/Welcome.svelte +++ b/AquaNet/src/pages/Welcome.svelte @@ -25,16 +25,16 @@ window.location.href = "/home" } if (location.pathname !== '/') { - location.href = `/${params.get('confirm-email') ? `?confirm-email=${params.get('confirm-email')}` : ""}` + location.href = `/${params.get('code') ? `?code=${params.get('code')}` : ""}` } else - if (params.get('confirm-email')) { + if (params.get('code')) { state = 'verify' verifyMsg = t("welcome.verifying") submitting = true // Send request to server - USER.confirmEmail(params.get('confirm-email')!) + USER.confirmEmail(params.get('code')!) .then(() => { verifyMsg = t('welcome.verified') submitting = false diff --git a/src/main/java/icu/samnyan/aqua/net/components/Email.kt b/src/main/java/icu/samnyan/aqua/net/components/Email.kt index 2acded03..75269b6c 100644 --- a/src/main/java/icu/samnyan/aqua/net/components/Email.kt +++ b/src/main/java/icu/samnyan/aqua/net/components/Email.kt @@ -69,15 +69,15 @@ class EmailService( confirmationRepo.save(confirmation) // Send email - log.info("Sending confirmation email to ${user.email}") + log.info("Sending verification email to ${user.email}") mailer.sendMail(EmailBuilder.startingBlank() .from(props.senderName, props.senderAddr) .to(user.computedName, user.email) - .withSubject("Confirm Your Email Address for AquaNet") + .withSubject("Verification Your Email Address for AquaNet") .withHTMLText(confirmTemplate .replace("{{name}}", user.computedName) - .replace("{{url}}", "https://${props.webHost}/confirm?confirm-email=$token")) - .buildEmail()).thenRun { log.info("Confirmation email sent to ${user.email}") } + .replace("{{url}}", "https://${props.webHost}/verify?code=$token")) + .buildEmail()).thenRun { log.info("Verification email sent to ${user.email}") } } fun testEmail(addr: Str, name: Str) { diff --git a/src/main/resources/email/confirm.html b/src/main/resources/email/confirm.html index d3be2da1..72908b92 100644 --- a/src/main/resources/email/confirm.html +++ b/src/main/resources/email/confirm.html @@ -212,7 +212,7 @@

Dear {{name}},

Thank you for registering with AquaDX! We're excited to have you on board. To complete your registration and verify your email address, please click the link below.

-

This link will confirm your email address, and it is valid for 24 hours. If you did not initiate this request, please ignore this email.

+

This link will verify your email address, and it is valid for 24 hours. If you did not initiate this request, please ignore this email.

@@ -225,7 +225,7 @@
- Confirm email + Verify email