fix(admin/smtp): Make the smtp_authentication field value more accurate

This commit is contained in:
haitaoo 2023-04-10 15:59:21 +08:00
parent 9a6f770062
commit b4870d066c
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ const Smtp: FC = () => {
}, [setting]);
useEffect(() => {
if (formData.smtp_authentication.value === '') {
if (!/true|false/.test(formData.smtp_authentication.value)) {
return;
}
if (formData.smtp_authentication.value) {