From 629451bbfd9698975bdb95dce4f3152bbdb3893c Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 8 Jul 2024 22:10:50 -0400 Subject: [PATCH] fix incorrect error field --- src/api/routes/auth/verify/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts index 49f74277..32c3f305 100644 --- a/src/api/routes/auth/verify/index.ts +++ b/src/api/routes/auth/verify/index.ts @@ -85,7 +85,7 @@ router.post( user = userTokenData.user; } catch { throw FieldErrors({ - password: { + token: { message: req.t("auth:password_reset.INVALID_TOKEN"), code: "INVALID_TOKEN", },