Skip to content

Commit

Permalink
fix(platform): fix a typo in the activation email template
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed May 20, 2024
1 parent f8ce2bd commit 8b98cf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/templates/account_activation_email.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p>{{{encoded_activation_link}}}</p>
<p>Or, simply copy and paste the following code into the account activation form:</p>
<p class="numeric-code">{{{encoded_activation_code}}}</p>
<p>If you have any trouble activating your account, please email as at <a href="mailto: [email protected]">[email protected]</a>
<p>If you have any trouble activating your account, please email us at <a href="mailto: [email protected]">[email protected]</a>
or simply reply to this email.</p>
<a href="{{home_link}}"><img src="cid:secutils-logo" alt="Secutils.dev logo" width="89" height="14" /></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/notifications/notification_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ mod tests {
subject: "Activate your Secutils.dev account",
text: "To activate your Secutils.dev account, please use the following code: some-code. Alternatively, navigate to the following URL in your browser: http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001",
html: Some(
"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Activate your Secutils.dev account</title>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <style>\n body {\n font-family: Arial, sans-serif;\n background-color: #f1f1f1;\n margin: 0;\n padding: 0;\n }\n .container {\n max-width: 600px;\n margin: 0 auto;\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n }\n h1 {\n font-size: 24px;\n margin-top: 0;\n }\n p {\n font-size: 16px;\n line-height: 1.5;\n margin-bottom: 20px;\n }\n .navigate-link {\n display: block;\n width: 250px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n text-decoration: none;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n .numeric-code {\n display: block;\n width: 100px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <p>Hi there,</p>\n <p>Thanks for signing up! To activate your account, please click the button below:</p>\n <a class=\"navigate-link\" href=\"http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001\">Activate my account</a>\n <p>Alternatively, copy and paste the following URL into your browser:</p>\n <p>http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001</p>\n <p>Or, simply copy and paste the following code into the account activation form:</p>\n <p class=\"numeric-code\">some-code</p>\n <p>If you have any trouble activating your account, please email as at <a href=\"mailto: [email protected]\">[email protected]</a>\n or simply reply to this email.</p>\n <a href=\"http:https://localhost:1234/\"><img src=\"cid:secutils-logo\" alt=\"Secutils.dev logo\" width=\"89\" height=\"14\" /></a>\n</div>\n</body>\n</html>\n",
"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Activate your Secutils.dev account</title>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <style>\n body {\n font-family: Arial, sans-serif;\n background-color: #f1f1f1;\n margin: 0;\n padding: 0;\n }\n .container {\n max-width: 600px;\n margin: 0 auto;\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n }\n h1 {\n font-size: 24px;\n margin-top: 0;\n }\n p {\n font-size: 16px;\n line-height: 1.5;\n margin-bottom: 20px;\n }\n .navigate-link {\n display: block;\n width: 250px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n text-decoration: none;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n .numeric-code {\n display: block;\n width: 100px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <p>Hi there,</p>\n <p>Thanks for signing up! To activate your account, please click the button below:</p>\n <a class=\"navigate-link\" href=\"http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001\">Activate my account</a>\n <p>Alternatively, copy and paste the following URL into your browser:</p>\n <p>http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001</p>\n <p>Or, simply copy and paste the following code into the account activation form:</p>\n <p class=\"numeric-code\">some-code</p>\n <p>If you have any trouble activating your account, please email us at <a href=\"mailto: [email protected]\">[email protected]</a>\n or simply reply to this email.</p>\n <a href=\"http:https://localhost:1234/\"><img src=\"cid:secutils-logo\" alt=\"Secutils.dev logo\" width=\"89\" height=\"14\" /></a>\n</div>\n</body>\n</html>\n",
),
attachments: Some(
[
Expand Down
2 changes: 1 addition & 1 deletion src/notifications/notification_content_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod tests {
subject: "Activate your Secutils.dev account",
text: "To activate your Secutils.dev account, please use the following code: some-code. Alternatively, navigate to the following URL in your browser: http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001",
html: Some(
"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Activate your Secutils.dev account</title>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <style>\n body {\n font-family: Arial, sans-serif;\n background-color: #f1f1f1;\n margin: 0;\n padding: 0;\n }\n .container {\n max-width: 600px;\n margin: 0 auto;\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n }\n h1 {\n font-size: 24px;\n margin-top: 0;\n }\n p {\n font-size: 16px;\n line-height: 1.5;\n margin-bottom: 20px;\n }\n .navigate-link {\n display: block;\n width: 250px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n text-decoration: none;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n .numeric-code {\n display: block;\n width: 100px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <p>Hi there,</p>\n <p>Thanks for signing up! To activate your account, please click the button below:</p>\n <a class=\"navigate-link\" href=\"http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001\">Activate my account</a>\n <p>Alternatively, copy and paste the following URL into your browser:</p>\n <p>http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001</p>\n <p>Or, simply copy and paste the following code into the account activation form:</p>\n <p class=\"numeric-code\">some-code</p>\n <p>If you have any trouble activating your account, please email as at <a href=\"mailto: [email protected]\">[email protected]</a>\n or simply reply to this email.</p>\n <a href=\"http:https://localhost:1234/\"><img src=\"cid:secutils-logo\" alt=\"Secutils.dev logo\" width=\"89\" height=\"14\" /></a>\n</div>\n</body>\n</html>\n",
"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Activate your Secutils.dev account</title>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <style>\n body {\n font-family: Arial, sans-serif;\n background-color: #f1f1f1;\n margin: 0;\n padding: 0;\n }\n .container {\n max-width: 600px;\n margin: 0 auto;\n background-color: #fff;\n padding: 20px;\n border-radius: 5px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n }\n h1 {\n font-size: 24px;\n margin-top: 0;\n }\n p {\n font-size: 16px;\n line-height: 1.5;\n margin-bottom: 20px;\n }\n .navigate-link {\n display: block;\n width: 250px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n text-decoration: none;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n .numeric-code {\n display: block;\n width: 100px;\n margin: auto;\n padding: 10px 20px;\n text-align: center;\n color: #5e1d3f;\n background-color: #fed047;\n border-radius: 5px;\n font-weight: bold;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <p>Hi there,</p>\n <p>Thanks for signing up! To activate your account, please click the button below:</p>\n <a class=\"navigate-link\" href=\"http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001\">Activate my account</a>\n <p>Alternatively, copy and paste the following URL into your browser:</p>\n <p>http:https://localhost:1234/activate?code=some-code&flow=00000000-0000-0000-0000-000000000001</p>\n <p>Or, simply copy and paste the following code into the account activation form:</p>\n <p class=\"numeric-code\">some-code</p>\n <p>If you have any trouble activating your account, please email us at <a href=\"mailto: [email protected]\">[email protected]</a>\n or simply reply to this email.</p>\n <a href=\"http:https://localhost:1234/\"><img src=\"cid:secutils-logo\" alt=\"Secutils.dev logo\" width=\"89\" height=\"14\" /></a>\n</div>\n</body>\n</html>\n",
),
attachments: Some(
[
Expand Down

0 comments on commit 8b98cf5

Please sign in to comment.