admin/options: minimum session duration, otherwise it won't work
Massimo Melina committed
Jun 23, 2023 at 16:00 UTC
0bd62dde3edb75cde2eb9e42fad9ca600411f236
1 file changed
+1
-1
admin/src/OptionsPage.ts
+1
-1
@@ -144,7 +144,7 @@ export default function OptionsPage() {
144
{ k: 'min_available_mb', comp: NumberField, md: 3, min : 0, unit: "MBytes", placeholder: "None",
145
label: "Min. available disk space", helperText: "Reject uploads that don't comply" },
146
{ k: 'keep_session_alive', comp: BoolField, helperText: "Keeps you logged in while the page is left open and the computer is on" },
147
- { k: 'session_duration', comp: NumberField, sm: 3, unit: "seconds" },
147
+ { k: 'session_duration', comp: NumberField, sm: 3, min: 5, unit: "seconds", required: true },
148
{ k: 'zip_calculate_size_for_seconds', comp: NumberField, sm: 3, label: "Calculate ZIP size for", unit: "seconds",
149
helperText: "If time is not enough, the browser will not show download percentage" },
150
{ k: 'admin_net', comp: NetmaskField, label: "Admin-panel accessible from", placeholder: "any address", md: 12,