aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-05-30 15:14:13 -0500
committerFrederick Muriuki Muriithi2024-06-03 10:02:09 -0500
commitc462653f53858359a81cfed561f1622d7e63102b (patch)
tree57c46d594560187389c036fdfed71c9a7a753e51 /gn_auth/templates
parent5680eb5fd1053f695e5917891f916ae85c212d3e (diff)
downloadgn-auth-c462653f53858359a81cfed561f1622d7e63102b.tar.gz
Send verification email on registration.
Diffstat (limited to 'gn_auth/templates')
-rw-r--r--gn_auth/templates/emails/verify-email.html49
-rw-r--r--gn_auth/templates/emails/verify-email.txt12
2 files changed, 61 insertions, 0 deletions
diff --git a/gn_auth/templates/emails/verify-email.html b/gn_auth/templates/emails/verify-email.html
new file mode 100644
index 0000000..08f1dfe
--- /dev/null
+++ b/gn_auth/templates/emails/verify-email.html
@@ -0,0 +1,49 @@
+<html>
+ <head>
+ <meta charset="UTF-8" />
+ <title>{{subject}}</title>
+ <style type="text/css">
+ .btn {
+ display: inline-block;
+ text-align: center;
+ vertical-align: center;
+ cursor: pointer;
+ border-radius: 4px;
+ background-color: #336699;
+ border-color: #357ebd;
+ }
+ .verification-code{
+ color: #3A3AFF;
+ font-weight: bolder;
+ }
+ .note {
+ font-weight: bold;
+ color: #ee55ee;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Thank you for registering an account with GeneNetwork.</p>
+
+ <p>
+ To avoid bots, we need to verify that you are an actual human. To do so,
+ please
+ <a href="{{verification_uri}}/{{verification_code}}"
+ class="btn">
+ Click here
+ </a>.
+ </p>
+
+ <p>
+ If that does not work, please log in to GeneNetwork and copy the
+ verification code below when requested:<br /><br />
+
+ <span class="verification-code">{{verification_code}}</span>
+ </p>
+
+ <p class="note">
+ Please note that the verification code will expire in
+ <strong>{{expiration_minutes}}</strong> minutes after it was generated.
+ </p>
+ </body>
+</html>
diff --git a/gn_auth/templates/emails/verify-email.txt b/gn_auth/templates/emails/verify-email.txt
new file mode 100644
index 0000000..92a6435
--- /dev/null
+++ b/gn_auth/templates/emails/verify-email.txt
@@ -0,0 +1,12 @@
+{{subject}}
+===============
+
+Thank you for registering an account with GeneNetwork.
+
+To avoid bots, we need to verify that you are an actual human. To do so, please go to "{{verification_uri}}/{{verification_code}}".
+
+If that does not work, please log in to GeneNetwork and copy the verification code below when requested:
+
+{{verification_code}}
+
+Please note that the verification code will expire {{expiration_minutes}} minutes after it was generated.