From 24b2c7c04aee19c8e06fb454aa2507aad2ac2619 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 3 Nov 2022 16:25:10 +0100 Subject: [PATCH] doh --- core/admin/assets/content/assets/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/admin/assets/content/assets/app.js b/core/admin/assets/content/assets/app.js index b0d48470..96d6deb7 100644 --- a/core/admin/assets/content/assets/app.js +++ b/core/admin/assets/content/assets/app.js @@ -38,7 +38,7 @@ function hibpCheck(pwd){ for(index in resp){ // Check if the line matches the rest of the hash if(resp[index].substring(0, 35) == hashSub){ - var val = resp[index].split(":")[1] + const val = resp[index].split(":")[1] if (val > 0) { $("#pwned").value = val; } @@ -126,8 +126,8 @@ $('document').ready(function() { } if (window.isSecureContext) { - $("#HIBPpw").change(function(){ - hibpCheck($("#HIBPpw").value); + $("#pw").change(function(){ + hibpCheck($("#pw").value); return true; }) }