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)'; + };