From 98f0fcdcbdbbd91a2a4da6b44229a178ddb38d31 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 26 Mar 2019 16:17:11 +0000 Subject: Add support for email confirmation --- app/templates/auth/not_confirmed.html | 9 +++++++++ app/templates/email/confirm_email.html | 8 ++++++++ app/templates/email/confirm_email.txt | 11 +++++++++++ 3 files changed, 28 insertions(+) create mode 100644 app/templates/auth/not_confirmed.html create mode 100644 app/templates/email/confirm_email.html create mode 100644 app/templates/email/confirm_email.txt (limited to 'app/templates') diff --git a/app/templates/auth/not_confirmed.html b/app/templates/auth/not_confirmed.html new file mode 100644 index 0000000..3b55afd --- /dev/null +++ b/app/templates/auth/not_confirmed.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block app_content %} +

Welcome to AnnotateChange

+

You have not yet confirmed your email address. Please check your inbox for +the confirmation email. The email might have landed in your spam folder.

+

If you haven't received and email, please click here to resend it.

+ +{% endblock %} diff --git a/app/templates/email/confirm_email.html b/app/templates/email/confirm_email.html new file mode 100644 index 0000000..4581804 --- /dev/null +++ b/app/templates/email/confirm_email.html @@ -0,0 +1,8 @@ +

Dear {{ user.username }}, +

Welcome to AnnotateChange!

+

Please confirm your email by clicking here. +

+

Alternatively, you can paste the following link in your browser's address bar:

+

{{ url_for('auth.confirm_email', token=token, _external=True) }}

+

Sincerely,

+

The AnnotateChange Team

diff --git a/app/templates/email/confirm_email.txt b/app/templates/email/confirm_email.txt new file mode 100644 index 0000000..b17c66d --- /dev/null +++ b/app/templates/email/confirm_email.txt @@ -0,0 +1,11 @@ +Dear {{ user.username }}, + +Welcome to AnnotateChange! + +Please confirm your email by clicking on the following link: + +{{ url_for('auth.confirm_email', token=token, _external=True) }} + +Sincerely, + +The AnnotateChange Team -- cgit v1.2.3