made "simple" the default authentication type (#993)

This commit is contained in:
Erik Jan de Wit 2021-08-11 16:32:40 +02:00 committed by GitHub
parent 9ce3f2c53c
commit 54dca4df65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,7 @@ export const LdapSettingsConnection = ({
const ldapBindType = useWatch({
control: form.control,
name: "config.authType",
defaultValue: ["simple"],
});
return (
@ -248,7 +249,7 @@ export const LdapSettingsConnection = ({
>
<Controller
name="config.authType[0]"
defaultValue="none"
defaultValue="simple"
control={form.control}
render={({ onChange, value }) => (
<Select
@ -266,8 +267,8 @@ export const LdapSettingsConnection = ({
variant={SelectVariant.single}
data-testid="ldap-bind-type"
>
<SelectOption key={0} value="simple" />
<SelectOption key={1} value="none" isPlaceholder />
<SelectOption value="simple" />
<SelectOption value="none" />
</Select>
)}
></Controller>