fix(xo-server-auth-ldap): typo defaults → default (#5388)

The "Check certificate" option's default value was incorrectly set in the UI. So if it was left untouched by the user (showing as OFF since `undefined`), it would be saved as `undefined`, and then fallback to the actual default value (`true`) when used in the code. So it would try to check the certificate even though the user didn't want to.
This commit is contained in:
Pierre Donias 2020-11-20 14:10:58 +01:00 committed by GitHub
parent ee7217c7c9
commit e0987059d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xo-server-auth-ldap patch
- @vates/multi-key-map minor
- @xen-orchestra/fs patch
- xo-server minor

View File

@ -53,7 +53,7 @@ If not specified, it will use a default set of well-known CAs.
description:
"Enforce the validity of the server's certificates. You can disable it when connecting to servers that use a self-signed certificate.",
type: 'boolean',
defaults: DEFAULTS.checkCertificate,
default: DEFAULTS.checkCertificate,
},
startTls: {
title: 'Use StartTLS',