X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..1eb51aa3f7a7add93f837456759d453288e6a454:/forum/settings/email.py diff --git a/forum/settings/email.py b/forum/settings/email.py index 43baeb5..7a0725b 100644 --- a/forum/settings/email.py +++ b/forum/settings/email.py @@ -1,5 +1,6 @@ from base import Setting, SettingSet from django.utils.translation import ugettext_lazy as _ +from django.forms.widgets import PasswordInput EMAIL_SET = SettingSet('email', _('Email Settings'), _("Email server and other email related settings."), 50) @@ -29,7 +30,8 @@ label = _("Email Password"), help_text = _(""" The password for your SMTP connection. """), -required=False)) +required=False, +widget=PasswordInput)) EMAIL_USE_TLS = Setting('EMAIL_USE_TLS', False, EMAIL_SET, dict( label = _("Use TLS"), @@ -39,7 +41,7 @@ Does your SMTP server uses TLS for authentication. required=False)) DEFAULT_FROM_EMAIL = Setting('DEFAULT_FROM_EMAIL', '', EMAIL_SET, dict( -label = _("Site email address"), +label = _("Site 'from' email address"), help_text = _(""" The address that will show up on the 'from' field on emails sent by your website. """), @@ -50,4 +52,4 @@ label = _("Email subject prefix"), help_text = _(""" Every email sent through your website will have the subject prefixed by this string. It's usually a good idea to have such a prefix so your users can easilly set up a filter on theyr email clients. """), -required=False)) \ No newline at end of file +required=False))