summary refs log tree commit diff
path: root/api/src/util/passwordStrength.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
commit7d343458ab868ede0cf468e8891333a170fdd24e (patch)
treead9e5464d24dc106734a1c60cf4f299e8d0e8473 /api/src/util/passwordStrength.ts
parent:sparkles: added User flags (diff)
parent:art: remove start from setup script (diff)
downloadserver-7d343458ab868ede0cf468e8891333a170fdd24e.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-server
Diffstat (limited to 'api/src/util/passwordStrength.ts')
-rw-r--r--api/src/util/passwordStrength.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/passwordStrength.ts b/api/src/util/passwordStrength.ts

index dfffa2c0..047df008 100644 --- a/api/src/util/passwordStrength.ts +++ b/api/src/util/passwordStrength.ts
@@ -16,7 +16,7 @@ const blocklist: string[] = []; // TODO: update ones passwordblocklist is stored * * Returns: 0 > pw > 1 */ -export function check(password: string): number { +export function checkPassword(password: string): number { const { minLength, minNumbers, minUpperCase, minSymbols } = Config.get().register.password; var strength = 0;