aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-05-24 12:48:29 -0700
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-05-27 23:33:18 +0200
commit02b6892c290671ac956144a212785d98ae579ef4 (patch)
treede587608d98fb6bc95d41fa2a3cb41bfff354bfb /mediagoblin/auth
parent97aebda7ded46181af1c5e9560be8251d4c56d36 (diff)
downloadmediagoblin-02b6892c290671ac956144a212785d98ae579ef4.tar.lz
mediagoblin-02b6892c290671ac956144a212785d98ae579ef4.tar.xz
mediagoblin-02b6892c290671ac956144a212785d98ae579ef4.zip
moved email_debug_message to gmg/tools/mail
Diffstat (limited to 'mediagoblin/auth')
-rw-r--r--mediagoblin/auth/views.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py
index 94354933..6a8e9a4c 100644
--- a/mediagoblin/auth/views.py
+++ b/mediagoblin/auth/views.py
@@ -21,24 +21,13 @@ from mediagoblin import messages, mg_globals
from mediagoblin.db.models import User
from mediagoblin.tools.response import render_to_response, redirect, render_404
from mediagoblin.tools.translate import pass_to_ugettext as _
+from mediagoblin.tools.mail import email_debug_message
from mediagoblin.auth import lib as auth_lib
from mediagoblin.auth import forms as auth_forms
from mediagoblin.auth.lib import send_fp_verification_email
from mediagoblin.auth.tools import send_verification_email
from sqlalchemy import or_
-def email_debug_message(request):
- """
- If the server is running in email debug mode (which is
- the current default), give a debug message to the user
- so that they have an idea where to find their email.
- """
- if mg_globals.app_config['email_debug_mode']:
- # DEBUG message, no need to translate
- messages.add_message(request, messages.DEBUG,
- u"This instance is running in email debug mode. "
- u"The email will be on the console of the server process.")
-
def register(request):
"""The registration view.