userInputs not working for me #68
-
Hi @MrWook hope you're doing well. const options3 = {
translations: zxcvbnts['language-fr'].translations,
graphs: zxcvbnts['language-common'].adjacencyGraphs,
dictionary: {
userInputs: ['[email protected]'],
...zxcvbnts['language-common'].dictionary,
...zxcvbnts['language-en'].dictionary,
...zxcvbnts['language-fr'].dictionary
},
}
zxcvbnts.core.ZxcvbnOptions.setOptions(options3) calling with this password: zxcvbnts.core.zxcvbn("[email protected]") and getting this result with a score of 4 and no suggestions -_-: calcTime: 13
crackTimesDisplay: Object { onlineThrottling100PerHour: "siècles", onlineNoThrottling10PerSecond: "siècles", offlineSlowHashing1e4PerSecond: "siècles", … }
crackTimesSeconds: Object { onlineThrottling100PerHour: 271252803600000000, onlineNoThrottling10PerSecond: 753480010000000, offlineSlowHashing1e4PerSecond: 753480010000, … }
feedback: Object { warning: "", suggestions: [] }
guesses: 7534800100000000
guessesLog10: 15.877071734869821
password: "[email protected]"
score: 4 What am I doing wrong here ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey, thats because you added the userInputs first, move it to the back and it should work. For some reason the userInput directory was added to the language dictionaries too. |
Beta Was this translation helpful? Give feedback.
-
that works thanks for this ! |
Beta Was this translation helpful? Give feedback.
Hey,
thats because you added the userInputs first, move it to the back and it should work. For some reason the userInput directory was added to the language dictionaries too.
I think that there were a reason but i'm not sure anymore. I will look into it and try to remove them from the language dictionaries. This is pretty confusing.