shuashuai commented on code in PR #1244: URL: https://github.com/apache/answer/pull/1244#discussion_r1980782752
########## ui/src/pages/Install/components/SecondStep/index.tsx: ########## @@ -90,6 +111,49 @@ const Index: FC<Props> = ({ visible, data, changeCallback, nextCallback }) => { errorMsg: t('db_name.msg'), }; } + if (db_type.value === 'postgres') { + if (!ssl_enabled.value) { + data.ssl_enabled = { + value: false, + isInvalid: false, + errorMsg: t('ssl_enabled.msg'), + }; + } else if (!ssl_mode.value) { + data.ssl_mode = { + value: 'require', + isInvalid: false, + errorMsg: '', + }; Review Comment: The `ssl_enabled` and `ssl_mode ` checksum is not needed and is meaningless, it's just a variable that controls the data underneath. What needs to be checked is the value of `key_file` and `pen_file` and `cert_file `if ssl_enabled is true and ssl_mode is not required. In addition, when switching ssl_anabled, please reinitialize these relevant values (ssl_mode、key_file、pen_file、cert_file) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@answer.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org