aboutsummaryrefslogtreecommitdiffstats
path: root/servo/forms
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-11-24 13:28:55 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-11-24 13:28:55 +0200
commit28f4a5677b8f485224ef7df675228ccf657dcb75 (patch)
treeed6bb72c4bc2e2113a0e543f879b9d0ac335c739 /servo/forms
parentc7432daca9a2cfd5ab506552446700932a99bc33 (diff)
downloadServo-28f4a5677b8f485224ef7df675228ccf657dcb75.tar.gz
Servo-28f4a5677b8f485224ef7df675228ccf657dcb75.tar.bz2
Servo-28f4a5677b8f485224ef7df675228ccf657dcb75.zip
Add SSL/TLS/None choices to SMTP settings
Diffstat (limited to 'servo/forms')
-rw-r--r--servo/forms/admin.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/servo/forms/admin.py b/servo/forms/admin.py
index 0fa0058..f1e610d 100644
--- a/servo/forms/admin.py
+++ b/servo/forms/admin.py
@@ -474,7 +474,16 @@ class SettingsForm(BaseForm):
label=_('Password'),
widget=forms.PasswordInput()
)
- smtp_ssl = forms.BooleanField(initial=True, required=False, label=_('Use SSL'))
+
+ ENCRYPTION_CHOICES = (
+ ('OFF', _('None')),
+ ('SSL', 'SSL'),
+ ('TLS', 'TLS'),
+ )
+ smtp_encryption = forms.ChoiceField(choices=ENCRYPTION_CHOICES,
+ initial='OFF',
+ required=False,
+ label=_('Encryption'))
sms_gateway = forms.ChoiceField(
label=_('SMS Gateway'),