|
|
@@ -42,6 +42,7 @@ const SystemSetting = () => {
|
|
|
TurnstileSecretKey: '',
|
|
|
RegisterEnabled: '',
|
|
|
EmailDomainRestrictionEnabled: '',
|
|
|
+ SMTPSSLEnabled: '',
|
|
|
EmailDomainWhitelist: [],
|
|
|
// telegram login
|
|
|
TelegramOAuthEnabled: '',
|
|
|
@@ -98,6 +99,7 @@ const SystemSetting = () => {
|
|
|
case 'TelegramOAuthEnabled':
|
|
|
case 'TurnstileCheckEnabled':
|
|
|
case 'EmailDomainRestrictionEnabled':
|
|
|
+ case 'SMTPSSLEnabled':
|
|
|
case 'RegisterEnabled':
|
|
|
value = inputs[key] === 'true' ? 'false' : 'true';
|
|
|
break;
|
|
|
@@ -134,7 +136,7 @@ const SystemSetting = () => {
|
|
|
}
|
|
|
if (
|
|
|
name === 'Notice' ||
|
|
|
- name.startsWith('SMTP') ||
|
|
|
+ (name.startsWith('SMTP') && name !== 'SMTPSSLEnabled') ||
|
|
|
name === 'ServerAddress' ||
|
|
|
name === 'EpayId' ||
|
|
|
name === 'EpayKey' ||
|
|
|
@@ -570,6 +572,14 @@ const SystemSetting = () => {
|
|
|
placeholder='敏感信息不会发送到前端显示'
|
|
|
/>
|
|
|
</Form.Group>
|
|
|
+ <Form.Group widths={3}>
|
|
|
+ <Form.Checkbox
|
|
|
+ label='启用SMTP SSL(465端口强制开启)'
|
|
|
+ name='SMTPSSLEnabled'
|
|
|
+ onChange={handleInputChange}
|
|
|
+ checked={inputs.SMTPSSLEnabled === 'true'}
|
|
|
+ />
|
|
|
+ </Form.Group>
|
|
|
<Form.Button onClick={submitSMTP}>保存 SMTP 设置</Form.Button>
|
|
|
<Divider />
|
|
|
<Header as='h3'>
|