Skip to content

Commit

Permalink
Client - add password strength estimation for Czech
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed May 22, 2024
1 parent 842ceff commit f2aec30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions fittrackee_client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@vue-leaflet/vue-leaflet": "^0.10.1",
"@zxcvbn-ts/core": "^3.0.4",
"@zxcvbn-ts/language-common": "^3.0.4",
"@zxcvbn-ts/language-cs": "^3.0.1",
"@zxcvbn-ts/language-de": "^3.0.2",
"@zxcvbn-ts/language-en": "^3.0.2",
"@zxcvbn-ts/language-es-es": "^3.0.2",
Expand Down
3 changes: 2 additions & 1 deletion fittrackee_client/src/utils/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { zxcvbnOptions } from '@zxcvbn-ts/core'
export const loadLanguagePackage = async (language: string) => {
// no package available for
// - Basque
// - Czech
// - Dutch (nl-NL)
// - Galician
// - Norwegian bokmål
Expand All @@ -20,6 +19,8 @@ export const loadLanguagePackage = async (language: string) => {
return await import('@zxcvbn-ts/language-es-es')
case 'pl':
return await import('@zxcvbn-ts/language-pl')
case 'cs':
return await import('@zxcvbn-ts/language-cs')
default:
return await import('@zxcvbn-ts/language-en')
}
Expand Down
5 changes: 5 additions & 0 deletions fittrackee_client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,11 @@
resolved "https://registry.yarnpkg.com/@zxcvbn-ts/language-common/-/language-common-3.0.4.tgz#fa1d2a42f8c8a589555859795da90d6b8027b7c4"
integrity sha512-viSNNnRYtc7ULXzxrQIVUNwHAPSXRtoIwy/Tq4XQQdIknBzw4vz36lQLF6mvhMlTIlpjoN/Z1GFu/fwiAlUSsw==

"@zxcvbn-ts/language-cs@^3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@zxcvbn-ts/language-cs/-/language-cs-3.0.1.tgz#e6518d62f662eee96fd3a0a9b445f6085e1e3744"
integrity sha512-GXUFxEAwYUCFzYdArP5MpEGX7NftmwIWNZxiRwanUa/ZiLWCML9l2zlTDb+BIUqCwfAfEue1Ar5iru4iWWBXaQ==

"@zxcvbn-ts/language-de@^3.0.2":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@zxcvbn-ts/language-de/-/language-de-3.0.2.tgz#fbd0d1be9454e308bbd63bf5487d4c17670094f0"
Expand Down

0 comments on commit f2aec30

Please sign in to comment.