From 6ab26cb3ffb9c40a203fa5f1f829b151b1847400 Mon Sep 17 00:00:00 2001 From: MathMan05 <73901602+MathMan05@users.noreply.github.com> Date: Sun, 25 Aug 2024 23:13:14 -0500 Subject: [PATCH] Fix the fix this should actually be what's intended --- src/api/routes/users/@me/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 836a32ea..c10e1f12 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -127,7 +127,7 @@ router.patch( } if (body.new_password) { - if (!body.password || !user.email) { + if (!body.password && user.email) { throw FieldErrors({ password: { code: "BASE_TYPE_REQUIRED",