chore(auth): #331 add sign up verify tests
This commit was merged in pull request #350.
This commit is contained in:
29
template/auth/verify_response.templ
Normal file
29
template/auth/verify_response.templ
Normal file
@@ -0,0 +1,29 @@
|
||||
package auth
|
||||
|
||||
templ VerifyResponseComp(isVerified bool) {
|
||||
<main>
|
||||
<div class="flex flex-col items-center justify-center h-screen">
|
||||
if isVerified {
|
||||
<h2 class="text-6xl mb-10">
|
||||
Your email has been verified
|
||||
</h2>
|
||||
<p class="text-lg text-center">
|
||||
You have completed the verification process. Thank you!
|
||||
</p>
|
||||
<a class="btn btn-primary mt-8" href="/">
|
||||
Go Home
|
||||
</a>
|
||||
} else {
|
||||
<h2 class="text-6xl mb-10">
|
||||
Error during verification
|
||||
</h2>
|
||||
<p class="text-lg text-center">
|
||||
Please try again by sign up process
|
||||
</p>
|
||||
<a class="btn btn-primary mt-8" href="/auth/signup">
|
||||
Sign Up
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</main>
|
||||
}
|
||||
@@ -3,17 +3,21 @@ package mail;
|
||||
import "net/url"
|
||||
|
||||
templ Register(baseUrl string, token 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(baseUrl + "/auth/verify-email?token=" + url.QueryEscape(token)) }>here</a> to verify your account.</p>
|
||||
<p>Kind regards</p>
|
||||
</body>
|
||||
</html>
|
||||
<!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(baseUrl + "/auth/verify-email?token=" + url.QueryEscape(token)) }>here</a> to finalize
|
||||
your registration.</p>
|
||||
<p>Kind regards</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user