fixing email for user validation

This commit is contained in:
simonredfern 2025-12-05 12:37:33 +01:00
parent aaf3e61313
commit 0989f158a3

View File

@ -2473,7 +2473,7 @@ trait APIMethods600 {
Constant.HostName + "/" + code.model.dataAccess.AuthUser.validateUserPath.mkString("/") + "/" + java.net.URLEncoder.encode(savedUser.uniqueId.get, "UTF-8")
case _ =>
// Default to portal_external_url property if available, otherwise fall back to hostname
APIUtil.getPropsValue("portal_external_url", Constant.HostName) + "/" + code.model.dataAccess.AuthUser.validateUserPath.mkString("/") + "/" + java.net.URLEncoder.encode(savedUser.uniqueId.get, "UTF-8")
APIUtil.getPropsValue("portal_external_url", Constant.HostName) + "/user-validation?token=" + java.net.URLEncoder.encode(savedUser.uniqueId.get, "UTF-8")
}
val textContent = Some(s"Welcome! Please validate your account by clicking the following link: $emailValidationLink")