mirror of https://gitee.com/answerdev/answer.git
fix(admin/smtp): Make the smtp_authentication field value more accurate
This commit is contained in:
parent
9a6f770062
commit
b4870d066c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue