mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
fix(connector): always show SMTP connector TLS configurations in the admin console (#5441)
This commit is contained in:
parent
697cdd54ee
commit
a7e69bd727
2 changed files with 5 additions and 5 deletions
5
.changeset/wet-squids-move.md
Normal file
5
.changeset/wet-squids-move.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@logto/connector-smtp": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Always show TLS configurations in the admin console.
|
|
@ -170,7 +170,6 @@ export const defaultMetadata: ConnectorMetadata = {
|
||||||
key: 'secure',
|
key: 'secure',
|
||||||
label: 'Secure',
|
label: 'Secure',
|
||||||
type: ConnectorConfigFormItemType.Switch,
|
type: ConnectorConfigFormItemType.Switch,
|
||||||
required: true,
|
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -179,7 +178,6 @@ export const defaultMetadata: ConnectorMetadata = {
|
||||||
type: ConnectorConfigFormItemType.Json,
|
type: ConnectorConfigFormItemType.Json,
|
||||||
required: false,
|
required: false,
|
||||||
defaultValue: {},
|
defaultValue: {},
|
||||||
showConditions: [{ targetKey: 'secure', expectValue: true }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'servername',
|
key: 'servername',
|
||||||
|
@ -187,21 +185,18 @@ export const defaultMetadata: ConnectorMetadata = {
|
||||||
type: ConnectorConfigFormItemType.Text,
|
type: ConnectorConfigFormItemType.Text,
|
||||||
required: false,
|
required: false,
|
||||||
placeholder: '<servername>',
|
placeholder: '<servername>',
|
||||||
showConditions: [{ targetKey: 'secure', expectValue: true }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'ignoreTLS',
|
key: 'ignoreTLS',
|
||||||
label: 'Ignore TLS',
|
label: 'Ignore TLS',
|
||||||
type: ConnectorConfigFormItemType.Switch,
|
type: ConnectorConfigFormItemType.Switch,
|
||||||
required: false,
|
required: false,
|
||||||
showConditions: [{ targetKey: 'secure', expectValue: true }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'requireTLS',
|
key: 'requireTLS',
|
||||||
label: 'Require TLS',
|
label: 'Require TLS',
|
||||||
type: ConnectorConfigFormItemType.Switch,
|
type: ConnectorConfigFormItemType.Switch,
|
||||||
required: false,
|
required: false,
|
||||||
showConditions: [{ targetKey: 'secure', expectValue: true }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue