needed to access email_sender_address through mg_globals.app_config
authorCaleb Forbes Davis V <caldavis@gmail.com>
Mon, 29 Aug 2011 02:41:42 +0000 (21:41 -0500)
committerCaleb Forbes Davis V <caldavis@gmail.com>
Mon, 29 Aug 2011 02:41:42 +0000 (21:41 -0500)
  instead of mg_globals.email_sender_address.

mediagoblin/auth/lib.py

index df93b666c319df14e7203e33a43660e8b72e9858..31dc4b7f24fbb5540af599373a9fd199bf7ff942 100644 (file)
@@ -146,7 +146,7 @@ def send_fp_verification_email(user,request):
 
     # TODO: There is no error handling in place
     send_email(
-        mg_globals.email_sender_address,
+        mg_globals.app_config['email_sender_address'],
         [user['email']],
         'GNU MediaGoblin - Change forgotten password!',
         rendered_email)