1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-29 12:59:59 +00:00

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,12 +413,13 @@ 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"]
content.config_ldap_serv_password = base64.b64encode(to_save["config_ldap_serv_password"]) 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_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"]
reboot_required = True reboot_required = True