aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-26 16:17:11 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-26 16:17:11 +0000
commit98f0fcdcbdbbd91a2a4da6b44229a178ddb38d31 (patch)
treeec6f1254bab7e65954694704a20c947fa268649e /app/templates
parentAdd email confirmation field (diff)
downloadAnnotateChange-98f0fcdcbdbbd91a2a4da6b44229a178ddb38d31.tar.gz
AnnotateChange-98f0fcdcbdbbd91a2a4da6b44229a178ddb38d31.zip
Add support for email confirmation
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/auth/not_confirmed.html9
-rw-r--r--app/templates/email/confirm_email.html8
-rw-r--r--app/templates/email/confirm_email.txt11
3 files changed, 28 insertions, 0 deletions
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 %}
+<h1>Welcome to AnnotateChange</h1>
+<p>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.</p>
+<p>If you haven't received and email, please <a href="{{ url_for('auth.resend_confirmation') }}">click here</a> to resend it.</p>
+
+{% 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 @@
+<p>Dear {{ user.username }},
+<p>Welcome to AnnotateChange!</p>
+<p>Please confirm your email by <a href="{{ url_for('auth.confirm_email', token=token, _external=True) }}">clicking here</a>.
+</p>
+<p>Alternatively, you can paste the following link in your browser's address bar:</p>
+<p>{{ url_for('auth.confirm_email', token=token, _external=True) }}</p>
+<p>Sincerely,</p>
+<p>The AnnotateChange Team</p>
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