From 6b141c3ea01e259d488227d99194a8e8cf2ebbe0 Mon Sep 17 00:00:00 2001 From: Mauricio Allende Date: Fri, 17 Jan 2025 22:54:20 -0300 Subject: [PATCH] fix: add missing `await` when verifying pincode `validPincode` ends up as a `Promise` and evaluates as a thruthy value wether the pin is correct or not. --- server/routers/resource/authWithPincode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routers/resource/authWithPincode.ts b/server/routers/resource/authWithPincode.ts index a41f5a29..63987a6d 100644 --- a/server/routers/resource/authWithPincode.ts +++ b/server/routers/resource/authWithPincode.ts @@ -117,7 +117,7 @@ export async function authWithPincode( ); } - const validPincode = verifyPassword( + const validPincode = await verifyPassword( pincode, definedPincode.pincodeHash );