Skip to content

Commit 549ec01

Browse files
comment in the right places
1 parent a6e026d commit 549ec01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

keycloak/themes/uid2-theme/login/login-update-password.ftl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<#import "template.ftl" as layout>
2-
32
<@layout.registrationLayout displayMessage=!messagesPerField.existsError('password','password-confirm'); section>
43
<#if section = "header">
54
${msg("updatePasswordTitle")}
@@ -73,10 +72,12 @@
7372
let blacklistedPasswords = [];
7473
7574
function loadBlacklist() {
75+
// txt file of common passwords recommended to blacklist by NIST
7676
fetch('https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt')
7777
.then(response => response.text())
7878
.then(data => {
7979
blacklistedPasswords = data.split("\n");
80+
// already do not allow length < 8, so makes sense to not include them here
8081
blacklistedPasswords = blacklistedPasswords.filter(password => password.length >= 8);
8182
})
8283
.catch(error => {

0 commit comments

Comments
 (0)