0
Fork 0
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:
Darcy Ye 2024-02-28 11:06:42 +08:00 committed by GitHub
parent 697cdd54ee
commit a7e69bd727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1,5 @@
---
"@logto/connector-smtp": patch
---
Always show TLS configurations in the admin console.

View file

@ -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 }],
}, },
], ],
}; };