Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Add bounds to email SMTP port and rate-limit inputs

rcourtman4d52b4e87b9b
diff --git a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx
index 2ce4929ccd..5ff73e2bdd 100644
--- a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx
+++ b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx
@@ -117,6 +117,8 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {
<label class={labelClass()}>{ALERT_EMAIL_SMTP_PORT_LABEL}</label>
<input
type="number"
+ min="1"
+ max="65535"
value={props.config.port || ''}
onInput={(e) => {
const value = e.currentTarget.value;
@@ -243,6 +245,7 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {
</label>
<input
type="number"
+ min="1"
value={props.config.rateLimit || 60}
onInput={(e) =>
props.onChange({ ...props.config, rateLimit: parseInt(e.currentTarget.value) })