Check for change before encoding

This commit is contained in:
Krakinou 2019-07-01 21:45:35 +02:00
parent e5b9da5201
commit 00a29f3d88

View file

@ -413,11 +413,12 @@ def configuration_helper(origin):
goodreads=goodreads_support, title=_(u"Basic Configuration"), goodreads=goodreads_support, title=_(u"Basic Configuration"),
page="config") page="config")
else: else:
content.config_use_ldap = 1 content.config_login_type = 1
content.config_ldap_provider_url = to_save["config_ldap_provider_url"] content.config_ldap_provider_url = to_save["config_ldap_provider_url"]
content.config_ldap_port = to_save["config_ldap_port"] content.config_ldap_port = to_save["config_ldap_port"]
content.config_ldap_schema = to_save["config_ldap_schema"] content.config_ldap_schema = to_save["config_ldap_schema"]
content.config_ldap_serv_username = to_save["config_ldap_serv_username"] content.config_ldap_serv_username = to_save["config_ldap_serv_username"]
if content.config_ldap_serv_password != to_save["config_ldap_serv_password"]:
content.config_ldap_serv_password = base64.b64encode(to_save["config_ldap_serv_password"]) content.config_ldap_serv_password = base64.b64encode(to_save["config_ldap_serv_password"])
content.config_ldap_dn = to_save["config_ldap_dn"] content.config_ldap_dn = to_save["config_ldap_dn"]
content.config_ldap_user_object = to_save["config_ldap_user_object"] content.config_ldap_user_object = to_save["config_ldap_user_object"]