From ae30ba71863ed6fccdd6be7d136c0640c9f41f6f Mon Sep 17 00:00:00 2001 From: Patrick Jentsch <p.jentsch@uni-bielefeld.de> Date: Mon, 2 Dec 2019 12:03:50 +0100 Subject: [PATCH] Change email template to fit new name --- app/email.py | 2 +- app/templates/auth/email/confirm.html.j2 | 2 +- app/templates/auth/email/confirm.txt.j2 | 2 +- app/templates/auth/email/reset_password.html.j2 | 2 +- app/templates/auth/email/reset_password.txt.j2 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/email.py b/app/email.py index fa516327..a8bde7db 100644 --- a/app/email.py +++ b/app/email.py @@ -10,7 +10,7 @@ def send_async_email(app, msg): def send_email(to, subject, template, **kwargs): - msg = Message('[Opaque] {}'.format(subject), recipients=[to]) + msg = Message('[nopaque] {}'.format(subject), recipients=[to]) msg.body = render_template(template + '.txt.j2', **kwargs) msg.html = render_template(template + '.html.j2', **kwargs) thread = Thread(target=send_async_email, diff --git a/app/templates/auth/email/confirm.html.j2 b/app/templates/auth/email/confirm.html.j2 index 82ce9240..a666ea7d 100644 --- a/app/templates/auth/email/confirm.html.j2 +++ b/app/templates/auth/email/confirm.html.j2 @@ -3,5 +3,5 @@ <p>Alternatively, you can paste the following link in your browser's address bar:</p> <p>{{ url_for('auth.confirm', token=token, _external=True) }}</p> <p>Sincerely,</p> -<p>The Opaque Team</p> +<p>The nopaque Team</p> <p><small>Note: replies to this email address are not monitored.</small></p> diff --git a/app/templates/auth/email/confirm.txt.j2 b/app/templates/auth/email/confirm.txt.j2 index 6421b7d0..41a3f17d 100644 --- a/app/templates/auth/email/confirm.txt.j2 +++ b/app/templates/auth/email/confirm.txt.j2 @@ -4,6 +4,6 @@ To confirm your account please click on the following link: {{ url_for('auth.confirm', token=token, _external=True) }} Sincerely, -The Opaque Team +The nopaque Team Note: replies to this email address are not monitored. diff --git a/app/templates/auth/email/reset_password.html.j2 b/app/templates/auth/email/reset_password.html.j2 index 5b58a220..8b4b20e0 100644 --- a/app/templates/auth/email/reset_password.html.j2 +++ b/app/templates/auth/email/reset_password.html.j2 @@ -4,5 +4,5 @@ <p>{{ url_for('auth.password_reset', token=token, _external=True) }}</p> <p>If you have not requested a password reset simply ignore this message.</p> <p>Sincerely,</p> -<p>The Opaque Team</p> +<p>The nopaque Team</p> <p><small>Note: replies to this email address are not monitored.</small></p> diff --git a/app/templates/auth/email/reset_password.txt.j2 b/app/templates/auth/email/reset_password.txt.j2 index cecc5a24..deb04b14 100644 --- a/app/templates/auth/email/reset_password.txt.j2 +++ b/app/templates/auth/email/reset_password.txt.j2 @@ -8,6 +8,6 @@ If you have not requested a password reset simply ignore this message. Sincerely, -The Opaque Team +The nopaque Team Note: replies to this email address are not monitored. -- GitLab