File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
keycloak/themes/uid2-theme/login Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
<#import "template.ftl" as layout >
2
-
3
2
<@layout.registrationLayout displayMessage=!messagesPerField.existsError('password','password-confirm'); section >
4
3
<#if section = "header" >
5
4
${msg("updatePasswordTitle") }
73
72
let blacklistedPasswords = [];
74
73
75
74
function loadBlacklist () {
75
+ // txt file of common passwords recommended to blacklist by NIST
76
76
fetch (' https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt' )
77
77
.then (response => response .text ())
78
78
.then (data => {
79
79
blacklistedPasswords = data .split (" \n " );
80
+ // already do not allow length < 8, so makes sense to not include them here
80
81
blacklistedPasswords = blacklistedPasswords .filter (password => password .length >= 8 );
81
82
})
82
83
.catch (error => {
You can’t perform that action at this time.
0 commit comments