chore: update SQL script, dev script, and add zxcvbnjs
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
const { zxcvbn, zxcvbnOptions } = require('@zxcvbn-ts/core');
|
||||
const { dictionary: commonDictionary, adjacencyGraphs } = require('@zxcvbn-ts/language-common');
|
||||
const { dictionary: enDictionary, translations } = require('@zxcvbn-ts/language-en');
|
||||
|
||||
zxcvbnOptions.setOptions({
|
||||
dictionary: {
|
||||
...commonDictionary,
|
||||
...enDictionary,
|
||||
},
|
||||
graphs: adjacencyGraphs,
|
||||
translations,
|
||||
});
|
||||
|
||||
// Called from Go via goja
|
||||
globalThis.zxcvbnScore = function (password) {
|
||||
return zxcvbn(password).score;
|
||||
};
|
||||
Reference in New Issue
Block a user