From 6098aa280ebf3c61171da4055bcbd70200f135c8 Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Thu, 24 Aug 2023 15:19:24 +0200 Subject: [PATCH] Fix typo --- src/entities/user.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/user.entity.ts b/src/entities/user.entity.ts index 568b463..2d91cc6 100644 --- a/src/entities/user.entity.ts +++ b/src/entities/user.entity.ts @@ -117,7 +117,7 @@ async function getUserByCredentials(username: string, password: string): Promise } } else { - // User isn't migrated to sha256 yet - fall back to sha256 + // User isn't migrated to scrypt yet - fall back to sha256 const sha256Hash = crypto.createHash('sha256').update(password).digest('base64'); if (user.passwordHash === sha256Hash) {