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