Merge pull request #3011 from jumpserver/dev_bai

[Bugfix] 解决邮件设置不成功的问题(提交前点击测试按钮)
pull/3013/head
BaiJiangJie 2019-07-22 18:55:26 +08:00 committed by GitHub
commit 74ae8636a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ class BaseForm(forms.Form):
field = self.fields[name]
if isinstance(field.widget, forms.PasswordInput) and not value:
continue
if value == getattr(settings, name):
continue
# if value == getattr(settings, name):
# continue
encrypted = True if isinstance(field, FormEncryptMixin) else False
try: