style: move from "confirm" to "verify" by May's request

This commit is contained in:
Raymond
2025-06-14 16:43:29 -04:00
committed by Azalea
parent 2563a31d15
commit 88d4a3d298
4 changed files with 10 additions and 10 deletions

View File

@@ -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) {