From 0bcafcd3b8ed9610220366fdfa68f7aa348cb0e7 Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Fri, 25 Jul 2025 00:30:19 +0200 Subject: [PATCH] Update apps/backend/src/app/api/latest/auth/otp/send-sign-in-code/route.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../src/app/api/latest/auth/otp/send-sign-in-code/route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/app/api/latest/auth/otp/send-sign-in-code/route.tsx b/apps/backend/src/app/api/latest/auth/otp/send-sign-in-code/route.tsx index a92d4c546..4846cae51 100644 --- a/apps/backend/src/app/api/latest/auth/otp/send-sign-in-code/route.tsx +++ b/apps/backend/src/app/api/latest/auth/otp/send-sign-in-code/route.tsx @@ -33,7 +33,7 @@ export const POST = createSmartRouteHandler({ }), async handler({ auth: { tenancy }, body: { email, callback_url: callbackUrl }, clientVersion }, fullReq) { if (!tenancy.config.auth.otp.allowSignIn) { - throw new StatusError(StatusError.Forbidden, "Magic link is not enabled for this project"); + throw new StatusError(StatusError.Forbidden, "OTP sign-in is not enabled for this project"); } const user = await ensureUserForEmailAllowsOtp(tenancy, email);