summary refs log tree commit diff
path: root/src/util/passwordStrength.ts
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 13:43:38 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 13:43:38 -0500
commit28424ed95030e700f9aa8d6f4305da045f260a39 (patch)
tree29c5d85351363f7f189a61e2da52c214e597c0dd /src/util/passwordStrength.ts
parentMerge branch 'fosscord-master' (diff)
downloadserver-28424ed95030e700f9aa8d6f4305da045f260a39.tar.xz
Fix: No more type casting required, rather take the gernics
Diffstat (limited to 'src/util/passwordStrength.ts')
-rw-r--r--src/util/passwordStrength.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/passwordStrength.ts b/src/util/passwordStrength.ts

index bc8ce2c4..7196f797 100644 --- a/src/util/passwordStrength.ts +++ b/src/util/passwordStrength.ts
@@ -23,7 +23,7 @@ export function check(password: string): number { minUpperCase, minSymbols, blockInsecureCommonPasswords, - } = (Config.apiConfig.getAll() as Config.DefaultOptions).register.password; + } = Config.apiConfig.getAll().register.password; var strength = 0; // checks for total password len