-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
send-email-challenge: improve default email templates
And use built-in interpolation of ConfigParser Change-Id: Ifb534d1a49a6ab4fcbd08b49082e8676646797c6
- Loading branch information
Showing
3 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,20 @@ SMTP_USER = leave it empty if you do not have one | |
SMTP_PASSWORD = leave it empty if you do not have one | ||
|
||
[ndncert.email] | ||
MAIL_FROM = NDN Testbed Certificate Robot <[email protected]> | ||
SUBJECT = Email Challenge Triggered by NDNCERT | ||
TEXT_TEMPLATE = Your PIN code: {0} from NDNCERT CA {1}. Certificate Name: {2}. Your email has been used to apply for a digital certificate from NDNCERT. Please keep it secret and type it in your application to complete the certificate issuance process. If you do not know what is going on, please ignore this message. | ||
HTML_TEMPLATE = <html><head></head><body><p><b>Your PIN code: {0} from NDNCERT CA {1}. Certificate Name: {2}.</b></p><p>Your email has been used to apply for a digital certificate from NDNCERT. Please keep it secret and type it in your application to complete the certificate issuance process. If you do not know what is going on, please ignore this message.</p><p>Sincerely,<br/>NDN Testbed NDNCERT robot</p> | ||
from = NDN Certificate Robot <[email protected]> | ||
subject = Your NDNCERT verification code | ||
text_template = Your email was recently used to apply for a digital certificate from NDNCERT. | ||
Here is the verification code to enter into your application and complete the certificate issuance process. Do not share this code with anyone else. | ||
|
||
Your verification code is: ${secret} | ||
CA name: ${ca_name} | ||
Certificate name: ${cert_name} | ||
|
||
If you do not know what is going on, please ignore this message. | ||
html_template = <!DOCTYPE html> | ||
<p>Your email was recently used to apply for a digital certificate from NDNCERT.<br> | ||
Here is the verification code to enter into your application and complete the certificate issuance process. Do not share this code with anyone else.</p> | ||
<p><strong>Your verification code is: <code>${secret}</code></strong><br> | ||
CA name: <code>${ca_name}</code><br> | ||
Certificate name: <code>${cert_name}</code></p> | ||
<p>If you do not know what is going on, please ignore this message.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters