diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-11-24 13:28:55 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-11-24 13:28:55 +0200 |
commit | 28f4a5677b8f485224ef7df675228ccf657dcb75 (patch) | |
tree | ed6bb72c4bc2e2113a0e543f879b9d0ac335c739 /servo/forms | |
parent | c7432daca9a2cfd5ab506552446700932a99bc33 (diff) | |
download | Servo-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.py | 11 |
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'), |