diff options
author | Frederick Muriuki Muriithi | 2024-05-30 16:13:04 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-03 10:08:23 -0500 |
commit | ffe9e7104ba83b73d78d66de2d29ad4ace6de2da (patch) | |
tree | 82dd7cf2265c11d6d0e7714b9680ab5bec92277a /gn_auth/templates/emails | |
parent | c462653f53858359a81cfed561f1622d7e63102b (diff) | |
download | gn-auth-ffe9e7104ba83b73d78d66de2d29ad4ace6de2da.tar.gz |
Provide endpoint for verification and do verification
Diffstat (limited to 'gn_auth/templates/emails')
-rw-r--r-- | gn_auth/templates/emails/verify-email.html | 27 | ||||
-rw-r--r-- | gn_auth/templates/emails/verify-email.txt | 2 |
2 files changed, 5 insertions, 24 deletions
diff --git a/gn_auth/templates/emails/verify-email.html b/gn_auth/templates/emails/verify-email.html index 08f1dfe..bc475c9 100644 --- a/gn_auth/templates/emails/verify-email.html +++ b/gn_auth/templates/emails/verify-email.html @@ -2,25 +2,6 @@ <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> @@ -28,8 +9,8 @@ <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"> + <a href="{{verification_uri}}?verificationcode={{verification_code}}" + style="display: inline-block;text-align: center;vertical-align: center;cursor: pointer;border-radius: 4px;background-color: #336699;border-color: #357ebd;"> Click here </a>. </p> @@ -38,10 +19,10 @@ 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> + <span style="color: #3A3AFF;font-weight: bolder;">{{verification_code}}</span> </p> - <p class="note"> + <p style="font-weight: bold;color: #ee55ee;"> Please note that the verification code will expire in <strong>{{expiration_minutes}}</strong> minutes after it was generated. </p> diff --git a/gn_auth/templates/emails/verify-email.txt b/gn_auth/templates/emails/verify-email.txt index 92a6435..7a39fea 100644 --- a/gn_auth/templates/emails/verify-email.txt +++ b/gn_auth/templates/emails/verify-email.txt @@ -3,7 +3,7 @@ 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}}". +To avoid bots, we need to verify that you are an actual human. To do so, please go to "{{verification_uri}}?verificationcode={{verification_code}}". If that does not work, please log in to GeneNetwork and copy the verification code below when requested: |