mirror of
https://github.com/open-webui/open-webui
synced 2025-04-10 15:45:45 +00:00
fix: tls cert requirement
This commit is contained in:
parent
dfdde8bb1f
commit
a1f3300767
@ -764,11 +764,6 @@ async def update_ldap_server(
|
||||
if not value:
|
||||
raise HTTPException(400, detail=f"Required field {key} is empty")
|
||||
|
||||
if form_data.use_tls and not form_data.certificate_path:
|
||||
raise HTTPException(
|
||||
400, detail="TLS is enabled but certificate file path is missing"
|
||||
)
|
||||
|
||||
request.app.state.config.LDAP_SERVER_LABEL = form_data.label
|
||||
request.app.state.config.LDAP_SERVER_HOST = form_data.host
|
||||
request.app.state.config.LDAP_SERVER_PORT = form_data.port
|
||||
|
Loading…
Reference in New Issue
Block a user