]> git.openstreetmap.org Git - osqa.git/commitdiff
render the value of the email password in the settings page, otherwise it gets lost...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 22 Dec 2011 11:06:53 +0000 (11:06 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 22 Dec 2011 11:06:53 +0000 (11:06 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1216 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/settings/email.py
forum/utils/mail.py

index 7922385fc2f37fe49b05b0c2471add59b5088fa6..71a7136df5b280daaedee55237043dccf0fcc762 100644 (file)
@@ -31,7 +31,7 @@ EMAIL_HOST_PASSWORD = Setting('EMAIL_HOST_PASSWORD', '', EMAIL_SET, dict(
 label = _("Email Password"),\r
 help_text = _("The password for your SMTP connection."),\r
 required=False,\r
-widget=PasswordInput))\r
+widget=PasswordInput(render_value=True)))\r
 \r
 EMAIL_USE_TLS = Setting('EMAIL_USE_TLS', False, EMAIL_SET, dict(\r
 label = _("Use TLS"),\r
index cecb5b4c240b1961ae119ec4e07e85c47e1e0996..4ab2a695618902c031cf27ce8a707a3608111d27 100644 (file)
@@ -33,7 +33,7 @@ def create_connection():
     connection = SMTP(str(settings.EMAIL_HOST), str(settings.EMAIL_PORT),
                           local_hostname=DNS_NAME.get_fqdn())
 
-    if (bool(settings.EMAIL_USE_TLS)):
+    if bool(settings.EMAIL_USE_TLS):
         connection.ehlo()
         connection.starttls()
         connection.ehlo()