Skip to content

Commit

Permalink
updated text for blacklist password
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Dec 20, 2024
1 parent 6b4ff75 commit b61341f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions keycloak/themes/uid2-theme/login/login-update-password.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,22 @@
});
}
loadBlacklist();
loadBlacklist();
let errorMessageDiv;
function checkPasswordBlacklist() {
var password = document.getElementById("password-new").value;
if (blacklistedPasswords.includes(password)) {
var errorMessageDiv = document.getElementById("password-error-message");
var errorText = document.querySelector(".kcErrorMessage .error-text");
errorText.textContent = "Password is commonly used.";
errorMessageDiv = document.getElementById("password-error-message");
let errorText = document.querySelector(".kcErrorMessage .error-text");
errorText.textContent = "The password you've entered isn't allowed. Please avoid using commonly used, or easily guessed passwords to keep your account secure.";
errorMessageDiv.style.display = "block";
return false;
}
var errorMessageDiv = document.getElementById("password-error-message");
errorMessageDiv = document.getElementById("password-error-message");
errorMessageDiv.style.display = "none";
return true;
}
Expand Down

0 comments on commit b61341f

Please sign in to comment.