From ff66ce780a0619168b3943f9d2f39b96cdac7393 Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Sat, 18 Jun 2016 22:27:22 +0530 Subject: [PATCH] Mention emails are printed in run-dev.py console. Fixes: #1046 --- templates/zerver/accounts_send_confirm.html | 3 +++ zerver/context_processors.py | 1 + 2 files changed, 4 insertions(+) diff --git a/templates/zerver/accounts_send_confirm.html b/templates/zerver/accounts_send_confirm.html index 8388a5b937..a118270cda 100644 --- a/templates/zerver/accounts_send_confirm.html +++ b/templates/zerver/accounts_send_confirm.html @@ -6,6 +6,9 @@

{{ _("Thanks for signing up!") }}

{{ _("Check your email so we can get started") }}.

+ {% if development_environment %} +
{{ _("In the Zulip development environment, outgoing emails are printed to the run-dev.py console") }}
+ {% endif %}

{% trans %}Still no email? We can resend it{% endtrans %}.
({{ _("Just in case, take a look at your Spam folder") }}.)

diff --git a/zerver/context_processors.py b/zerver/context_processors.py index 1dd099ce5d..2a2431548a 100644 --- a/zerver/context_processors.py +++ b/zerver/context_processors.py @@ -25,6 +25,7 @@ def add_settings(request): 'password_auth_enabled': password_auth_enabled(realm), 'dev_auth_enabled': dev_auth_enabled(), 'google_auth_enabled': google_auth_enabled(), + 'development_environment': settings.DEVELOPMENT, } def add_metrics(request):