Skip to content

Commit ac378c1

Browse files
authored
Merge pull request #225 from devondragon/password-tweaks
Bump version to 3.5.0-SNAPSHOT; add VS Code Java home settings; use A…
2 parents 4412858 + 0fa7262 commit ac378c1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99
"debug.javascript.defaultRuntimeExecutable": {
1010
"pwa-node": "/Users/devon/.local/share/mise/shims/node"
1111
},
12-
"python.defaultInterpreterPath": "/Users/devon/.local/share/mise/installs/python/3.13.2/bin/python"
12+
"python.defaultInterpreterPath": "/Users/devon/.local/share/mise/installs/python/3.13.2/bin/python",
13+
"java.jdt.ls.java.home": "/Users/devon/.local/share/mise/installs/java/17.0.2",
14+
"java.import.gradle.java.home": "/Users/devon/.local/share/mise/installs/java/17.0.2"
1315
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=3.4.2-SNAPSHOT
1+
version=3.5.0-SNAPSHOT
22
mavenCentralPublishing=true
33
mavenCentralAutomaticPublishing=true

src/main/java/com/digitalsanctuary/spring/user/service/PasswordPolicyService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.passay.dictionary.ArrayWordList;
1717
import org.passay.dictionary.WordListDictionary;
1818
import org.passay.dictionary.WordLists;
19+
import org.passay.dictionary.sort.ArraysSort;
1920
import org.springframework.beans.factory.annotation.Value;
2021
import org.springframework.context.MessageSource;
2122
import org.springframework.core.io.Resource;
@@ -100,7 +101,7 @@ private void initCommonPasswords() {
100101
try (
101102
Reader reader = new BufferedReader(
102103
new InputStreamReader(commonPasswordsResource.getInputStream()))) {
103-
ArrayWordList wordList = WordLists.createFromReader(new Reader[] { reader }, false);
104+
ArrayWordList wordList = WordLists.createFromReader(new Reader[] { reader }, false, new ArraysSort());
104105
WordListDictionary dictionary = new WordListDictionary(wordList);
105106
commonPasswordRule = new DictionaryRule(dictionary);
106107
log.info("Common password dictionary initialized successfully.");

0 commit comments

Comments
 (0)