diff --git a/views/register.html b/views/register.html index b09d4c7..0265e7f 100644 --- a/views/register.html +++ b/views/register.html @@ -9,6 +9,15 @@ localStorage.setItem("decryption_key",pw) //yes I know this is not secure, but at this point I think it'd be better to trust the client for end-to-end encryption } + + const input = document.getElementById('pass'); + input.addEventListener('input', () => { + if (input.value.length < 10) { + input.style.borderColor = 'red'; + return; + } + input.style.borderColor = 'green'; + });