From 8db39a8d1584d37f8c4b2dfb673f7712272d0ea2 Mon Sep 17 00:00:00 2001 From: Shuvo Date: Mon, 31 Aug 2026 22:46:09 +0600 Subject: [PATCH] fix: normalize email argument before lookup in reset-password Trims and lowercases the CLI email arg to match the normalization used elsewhere for user emails, so a differently-cased or whitespace-padded email no longer falsely reports "User not found". --- apps/dokploy/reset-password.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dokploy/reset-password.ts b/apps/dokploy/reset-password.ts index 3c08d89b6..4dded1f7c 100644 --- a/apps/dokploy/reset-password.ts +++ b/apps/dokploy/reset-password.ts @@ -5,7 +5,7 @@ import { and, eq } from "drizzle-orm"; (async () => { try { - const email = process.argv[2]; + const email = process.argv[2]?.trim().toLowerCase(); const randomPassword = await generateRandomPassword();