From 4f8ebc7dd9b1c25ec7eddfc00cee1943aa8e5093 Mon Sep 17 00:00:00 2001 From: Maix0 <39835848+Maix0@users.noreply.github.com> Date: Sun, 31 Aug 2025 16:36:47 +0200 Subject: [PATCH] feat(otp): use dedicated method to get user's otp secret Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/auth/src/routes/otp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/src/routes/otp.ts b/src/auth/src/routes/otp.ts index e1f207b..8db0f92 100644 --- a/src/auth/src/routes/otp.ts +++ b/src/auth/src/routes/otp.ts @@ -40,7 +40,7 @@ const route: FastifyPluginAsync = async (fastify, _opts): Promise => { return makeResponse("failed", "otp.failed.timeout"); // get the Otp sercret from the db - let otpSecret = this.db.getUserFromName(dJwt.who)?.otp; + let otpSecret = this.db.getUserOtpSecret(dJwt.who); if (isNullish(otpSecret)) // oops, either no user, or user without otpSecret // fuck off