This repository has been archived on 2025-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/template/mail/register.templ
Tim 3576a69b5c
All checks were successful
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 54s
fix: escape QueryParam
2024-09-12 22:01:25 +02:00

23 lines
502 B
Plaintext

package mail;
import (
"me-fit/utils"
"net/url"
)
templ Register(mailCode string) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Welcome</title>
</head>
<body>
<h4>Thank you for Sign Up!</h4>
<p>Click <a href={ templ.URL(utils.BaseUrl + "/auth/verify-email?token=" + url.QueryEscape(mailCode)) }>here</a> to verify your account.</p>
<p>Kind regards</p>
</body>
</html>
}