You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/notifications/notification_content.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -172,9 +172,9 @@ mod tests {
172
172
.await?, @r###"
173
173
EmailNotificationContent {
174
174
subject: "Activate you Secutils.dev account",
175
-
text: "To activate your Secutils.dev account, please click the following link: http://localhost:1234/activate?code=some-code&email=dev%40secutils.dev",
175
+
text: "To activate your Secutils.dev account, please click the following link: http://localhost:1234/activate?code=some-code&email=dev-1%40secutils.dev",
176
176
html: Some(
177
-
"<!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 .button-link {\n color: #fff;\n background-color: #2196F3;\n padding: 10px 20px;\n text-decoration: none;\n border-radius: 5px;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <h1>Activate your Secutils.dev account</h1>\n <p>Thanks for signing up! To activate your account, please click the link below:</p>\n <a class=\"button-link\" href=\"http://localhost:1234/activate?code=some-code&email=dev%40secutils.dev\">Activate my account</a>\n <p>If the button above doesn't work, you can also copy and paste the following URL into your browser:</p>\n <p>http://localhost:1234/activate?code=some-code&email=dev%40secutils.dev</p>\n <p>If you have any trouble activating your account, please contact us at <a href=\"mailto: [email protected]\">[email protected]</a>.</p>\n</div>\n</body>\n</html>\n",
177
+
"<!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 .button-link {\n color: #fff;\n background-color: #2196F3;\n padding: 10px 20px;\n text-decoration: none;\n border-radius: 5px;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <h1>Activate your Secutils.dev account</h1>\n <p>Thanks for signing up! To activate your account, please click the link below:</p>\n <a class=\"button-link\" href=\"http://localhost:1234/activate?code=some-code&email=dev-1%40secutils.dev\">Activate my account</a>\n <p>If the button above doesn't work, you can also copy and paste the following URL into your browser:</p>\n <p>http://localhost:1234/activate?code=some-code&email=dev-1%40secutils.dev</p>\n <p>If you have any trouble activating your account, please contact us at <a href=\"mailto: [email protected]\">[email protected]</a>.</p>\n</div>\n</body>\n</html>\n",
Copy file name to clipboardExpand all lines: src/notifications/notification_content_template.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -80,9 +80,9 @@ mod tests {
80
80
.await?, @r###"
81
81
EmailNotificationContent {
82
82
subject: "Activate you Secutils.dev account",
83
-
text: "To activate your Secutils.dev account, please click the following link: http://localhost:1234/activate?code=some-code&email=dev%40secutils.dev",
83
+
text: "To activate your Secutils.dev account, please click the following link: http://localhost:1234/activate?code=some-code&email=dev-1%40secutils.dev",
84
84
html: Some(
85
-
"<!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 .button-link {\n color: #fff;\n background-color: #2196F3;\n padding: 10px 20px;\n text-decoration: none;\n border-radius: 5px;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <h1>Activate your Secutils.dev account</h1>\n <p>Thanks for signing up! To activate your account, please click the link below:</p>\n <a class=\"button-link\" href=\"http://localhost:1234/activate?code=some-code&email=dev%40secutils.dev\">Activate my account</a>\n <p>If the button above doesn't work, you can also copy and paste the following URL into your browser:</p>\n <p>http://localhost:1234/activate?code=some-code&email=dev%40secutils.dev</p>\n <p>If you have any trouble activating your account, please contact us at <a href=\"mailto: [email protected]\">[email protected]</a>.</p>\n</div>\n</body>\n</html>\n",
85
+
"<!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 .button-link {\n color: #fff;\n background-color: #2196F3;\n padding: 10px 20px;\n text-decoration: none;\n border-radius: 5px;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <h1>Activate your Secutils.dev account</h1>\n <p>Thanks for signing up! To activate your account, please click the link below:</p>\n <a class=\"button-link\" href=\"http://localhost:1234/activate?code=some-code&email=dev-1%40secutils.dev\">Activate my account</a>\n <p>If the button above doesn't work, you can also copy and paste the following URL into your browser:</p>\n <p>http://localhost:1234/activate?code=some-code&email=dev-1%40secutils.dev</p>\n <p>If you have any trouble activating your account, please contact us at <a href=\"mailto: [email protected]\">[email protected]</a>.</p>\n</div>\n</body>\n</html>\n",
86
86
),
87
87
attachments: None,
88
88
}
@@ -115,9 +115,9 @@ mod tests {
115
115
.await?, @r###"
116
116
EmailNotificationContent {
117
117
subject: "Reset password for your Secutils.dev account",
118
-
text: "To reset your Secutils.dev password, please click the following link: http://localhost:1234/reset_credentials?code=some-code&email=dev%40secutils.dev",
118
+
text: "To reset your Secutils.dev password, please click the following link: http://localhost:1234/reset_credentials?code=some-code&email=dev-1%40secutils.dev",
119
119
html: Some(
120
-
"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Reset password for 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 .button-link {\n color: #fff;\n background-color: #2196F3;\n padding: 10px 20px;\n text-decoration: none;\n border-radius: 5px;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <h1>Reset password for your Secutils.dev account</h1>\n <p>You recently requested to reset your password. To reset your password, please click the link below:</p>\n <a class=\"button-link\" href=\"http://localhost:1234/reset_credentials?code=some-code&email=dev%40secutils.dev\">Reset your password</a>\n <p>If the button above doesn't work, you can also copy and paste the following URL into your browser:</p>\n <p>http://localhost:1234/reset_credentials?code=some-code&email=dev%40secutils.dev</p>\n <p>If you did not request to reset your password, please ignore this email and your password will not be changed.</p>\n <p>If you have any trouble resetting your password, please contact us at <a href=\"mailto: [email protected]\">[email protected]</a>.</p>\n</div>\n</body>\n</html>\n",
120
+
"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Reset password for 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 .button-link {\n color: #fff;\n background-color: #2196F3;\n padding: 10px 20px;\n text-decoration: none;\n border-radius: 5px;\n }\n </style>\n</head>\n<body>\n<div class=\"container\">\n <h1>Reset password for your Secutils.dev account</h1>\n <p>You recently requested to reset your password. To reset your password, please click the link below:</p>\n <a class=\"button-link\" href=\"http://localhost:1234/reset_credentials?code=some-code&email=dev-1%40secutils.dev\">Reset your password</a>\n <p>If the button above doesn't work, you can also copy and paste the following URL into your browser:</p>\n <p>http://localhost:1234/reset_credentials?code=some-code&email=dev-1%40secutils.dev</p>\n <p>If you did not request to reset your password, please ignore this email and your password will not be changed.</p>\n <p>If you have any trouble resetting your password, please contact us at <a href=\"mailto: [email protected]\">[email protected]</a>.</p>\n</div>\n</body>\n</html>\n",
0 commit comments