From 8d46cf18237cae85853d39d8b6d99dbdb081c527 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 16 Dec 2025 21:54:36 +0000 Subject: [PATCH] login-ui password max-length hint; closes #1029 --- copyparty/web/splash.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/copyparty/web/splash.js b/copyparty/web/splash.js index 5b3543ae..4a70d0f4 100644 --- a/copyparty/web/splash.js +++ b/copyparty/web/splash.js @@ -115,3 +115,9 @@ if (ebi('lf')) ebi('lm').innerHTML = un ? d.nou : d.nop; return false; }; + +if (ebi('lp')) + ebi('lp').oninput = function() { + ebi('lm').innerHTML = this.value.length <= 64 ? + '' : 'ERROR: Password too long (max=64)'; + };