From: Magnus Hagander Date: Thu, 18 Nov 2021 13:21:05 +0000 (+0100) Subject: Show a proper confirmation page after adding an email to an org X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e545c0b3c3aecdb45e41972d8d0239468af92412;p=pgweb.git Show a proper confirmation page after adding an email to an org This should (hopefully) help reduce some confusion. --- diff --git a/pgweb/account/views.py b/pgweb/account/views.py index ae42851c..e7df5d8b 100644 --- a/pgweb/account/views.py +++ b/pgweb/account/views.py @@ -297,6 +297,10 @@ def confirm_org_email(request, token): email.token = None email.save() + return render_pgweb(request, 'account', 'account/orgemail_confirmed.html', { + 'org': email.org, + 'email': email.address, + }) return HttpResponseRedirect('/account/organisations/{}/'.format(email.org.id)) diff --git a/templates/account/orgemail_confirmed.html b/templates/account/orgemail_confirmed.html new file mode 100644 index 00000000..d57ef1aa --- /dev/null +++ b/templates/account/orgemail_confirmed.html @@ -0,0 +1,11 @@ +{%extends "base/page.html"%} +{%block title%}Email confirmed{%endblock%} +{%block contents%} +

+ The email {{email}} has been confirmed for use in {{org.name}}, + and can now be used for submitting news. +

+

+ Return to organisation +

+{%endblock%}