From 9efe7e14ec0735a94577a77d8b3b4d7c2906f7d0 Mon Sep 17 00:00:00 2001 From: Alec Obradovich Date: Thu, 29 Nov 2018 06:47:01 -0600 Subject: [PATCH] it seemed like i did more than this but evidently that wasn't the case --- src/web/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/script.js b/src/web/script.js index 0416049..20a48d5 100644 --- a/src/web/script.js +++ b/src/web/script.js @@ -81,7 +81,9 @@ function attempt_register() { fields[x.id.substr(4)] = x.value.trim(); }); - if(fields["pwd"] === fields["conf-pwd"]) + if(fields["pwd"] !== fields["conf-pwd"]) { + error.innerHTML = ""; + } for_each(lock_fields, x => x.disabled = true);