fix: restructure env handling for better testing capabillities #181
This commit was merged in pull request #195.
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
package mail;
|
||||
|
||||
import (
|
||||
"me-fit/utils"
|
||||
"net/url"
|
||||
)
|
||||
import "net/url"
|
||||
|
||||
templ Register(token string) {
|
||||
templ Register(baseUrl string, token string) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -15,7 +12,7 @@ templ Register(token string) {
|
||||
</head>
|
||||
<body>
|
||||
<h4>Thank you for Sign Up!</h4>
|
||||
<p>Click <a href={ templ.URL(utils.BaseUrl + "/auth/verify-email?token=" + url.QueryEscape(token)) }>here</a> to verify your account.</p>
|
||||
<p>Click <a href={ templ.URL(baseUrl + "/auth/verify-email?token=" + url.QueryEscape(token)) }>here</a> to verify your account.</p>
|
||||
<p>Kind regards</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
package mail;
|
||||
|
||||
import (
|
||||
"me-fit/utils"
|
||||
"net/url"
|
||||
)
|
||||
import "net/url"
|
||||
|
||||
templ ResetPassword(token string) {
|
||||
templ ResetPassword(baseUrl string, token string) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -15,7 +12,7 @@ templ ResetPassword(token string) {
|
||||
</head>
|
||||
<body>
|
||||
<h4>Reset your password</h4>
|
||||
<p>Click <a href={ templ.URL(utils.BaseUrl + "/auth/change-password?token=" + url.QueryEscape(token)) }>here</a> to change your password.</p>
|
||||
<p>Click <a href={ templ.URL(baseUrl + "/auth/change-password?token=" + url.QueryEscape(token)) }>here</a> to change your password.</p>
|
||||
<p>Kind regards</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user