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 (
|
if (
|
||||||
!emailConfig.systemEmailHost ||
|
!emailConfig.systemEmailHost ||
|
||||||
!emailConfig.systemEmailPort ||
|
!emailConfig.systemEmailPort ||
|
||||||
!emailConfig.systemEmailAddress
|
!emailConfig.systemEmailAddress ||
|
||||||
|
!emailConfig.systemEmailPassword
|
||||||
) {
|
) {
|
||||||
createToast({
|
createToast({
|
||||||
body: t(
|
body: t(
|
||||||
"settingsEmailRequiredFields",
|
"settingsEmailRequiredFields",
|
||||||
"Email address, host and port are required"
|
"Email address, host, port and password are required"
|
||||||
),
|
),
|
||||||
variant: "error",
|
variant: "error",
|
||||||
});
|
});
|
||||||
@@ -241,16 +242,19 @@ const SettingsEmail = ({
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
{systemEmailHost && systemEmailPort && systemEmailAddress && (
|
{systemEmailHost &&
|
||||||
<Button
|
systemEmailPort &&
|
||||||
variant="contained"
|
systemEmailAddress &&
|
||||||
color="accent"
|
systemEmailPassword && (
|
||||||
loading={isSending}
|
<Button
|
||||||
onClick={handleSendTestEmail}
|
variant="contained"
|
||||||
>
|
color="accent"
|
||||||
{t("settingsTestEmail", "Send test e-mail")}
|
loading={isSending}
|
||||||
</Button>
|
onClick={handleSendTestEmail}
|
||||||
)}
|
>
|
||||||
|
{t("settingsTestEmail", "Send test e-mail")}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -714,7 +714,7 @@
|
|||||||
"settingsTestEmailFailed": "Failed to send test email",
|
"settingsTestEmailFailed": "Failed to send test email",
|
||||||
"settingsTestEmailFailedWithReason": "Failed to send test email: {{reason}}",
|
"settingsTestEmailFailedWithReason": "Failed to send test email: {{reason}}",
|
||||||
"settingsTestEmailUnknownError": "Unknown error",
|
"settingsTestEmailUnknownError": "Unknown error",
|
||||||
"settingsEmailRequiredFields": "Email address, host and port are required",
|
"settingsEmailRequiredFields": "Email address, host, port and password are required",
|
||||||
"statusMsg": {
|
"statusMsg": {
|
||||||
"paused": "Monitoring is paused.",
|
"paused": "Monitoring is paused.",
|
||||||
"up": "Your site is up.",
|
"up": "Your site is up.",
|
||||||
|
|||||||
Reference in new issue
Block a user