From 6ac2e6d7e76ba692f97af7e7b7681ae8ed4eebd6 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 11 Jan 2026 08:20:15 +0000 Subject: [PATCH] Changes --- src/pages/user/SecurityPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/user/SecurityPage.tsx b/src/pages/user/SecurityPage.tsx index 7fbf7c6..d742956 100644 --- a/src/pages/user/SecurityPage.tsx +++ b/src/pages/user/SecurityPage.tsx @@ -55,6 +55,11 @@ export default function SecurityPage() { return; } + if (newPassword === currentPassword) { + setPasswordError("New password must be different from current password"); + return; + } + if (!isPasswordValid(newPassword)) { setPasswordError("New password does not meet strength requirements"); return;