Skip to content

Commit

Permalink
comment in the right places
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Dec 20, 2024
1 parent a6e026d commit 549ec01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keycloak/themes/uid2-theme/login/login-update-password.ftl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<#import "template.ftl" as layout>

<@layout.registrationLayout displayMessage=!messagesPerField.existsError('password','password-confirm'); section>
<#if section = "header">
${msg("updatePasswordTitle")}
Expand Down Expand Up @@ -73,10 +72,12 @@
let blacklistedPasswords = [];
function loadBlacklist() {
// txt file of common passwords recommended to blacklist by NIST
fetch('https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt')
.then(response => response.text())
.then(data => {
blacklistedPasswords = data.split("\n");
// already do not allow length < 8, so makes sense to not include them here
blacklistedPasswords = blacklistedPasswords.filter(password => password.length >= 8);
})
.catch(error => {
Expand Down

0 comments on commit 549ec01

Please sign in to comment.