Password Validation Check
This commit is contained in:
1 parent
2d839285f2
commit
91694ff072
2 files changed
+17
-13
No files matched your search
@@ -81,12 +81,13 @@ const SettingsEmail = ({
|
||||
if (
|
||||
!emailConfig.systemEmailHost ||
|
||||
!emailConfig.systemEmailPort ||
|
||||
!emailConfig.systemEmailAddress
|
||||
!emailConfig.systemEmailAddress ||
|
||||
!emailConfig.systemEmailPassword
|
||||
) {
|
||||
createToast({
|
||||
body: t(
|
||||
"settingsEmailRequiredFields",
|
||||
"Email address, host and port are required"
|
||||
"Email address, host, port and password are required"
|
||||
),
|
||||
variant: "error",
|
||||
});
|
||||
@@ -241,16 +242,19 @@ const SettingsEmail = ({
|
||||
/>
|
||||
</Box>
|
||||
<Box>
|
||||
{systemEmailHost && systemEmailPort && systemEmailAddress && (
|
||||
<Button
|
||||
variant="contained"
|
||||
color="accent"
|
||||
loading={isSending}
|
||||
onClick={handleSendTestEmail}
|
||||
>
|
||||
{t("settingsTestEmail", "Send test e-mail")}
|
||||
</Button>
|
||||
)}
|
||||
{systemEmailHost &&
|
||||
systemEmailPort &&
|
||||
systemEmailAddress &&
|
||||
systemEmailPassword && (
|
||||
<Button
|
||||
variant="contained"
|
||||
color="accent"
|
||||
loading={isSending}
|
||||
onClick={handleSendTestEmail}
|
||||
>
|
||||
{t("settingsTestEmail", "Send test e-mail")}
|
||||
</Button>
|
||||
)}
|
||||
</Box>
|
||||
</Stack>
|
||||
</Box>
|
||||
|
||||
@@ -714,7 +714,7 @@
|
||||
"settingsTestEmailFailed": "Failed to send test email",
|
||||
"settingsTestEmailFailedWithReason": "Failed to send test email: {{reason}}",
|
||||
"settingsTestEmailUnknownError": "Unknown error",
|
||||
"settingsEmailRequiredFields": "Email address, host and port are required",
|
||||
"settingsEmailRequiredFields": "Email address, host, port and password are required",
|
||||
"statusMsg": {
|
||||
"paused": "Monitoring is paused.",
|
||||
"up": "Your site is up.",
|
||||
|
||||
Reference in new issue
Block a user