From a2a0aed00c2ee1ac1cf1187be8f2cbdc6c89310d Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 15 十一月 2024 15:41:25 +0800
Subject: [PATCH] 1.PLC的连接;

---
 SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp b/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp
index 2bfc2c2..7fe322e 100644
--- a/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp
+++ b/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp
@@ -2,7 +2,7 @@
 //
 
 #include "stdafx.h"
-#include "BondServo.h"
+#include "BondEq.h"
 #include "afxdialogex.h"
 #include "ChangePasswordDlg.h"
 #include "UserManager.h"
@@ -82,6 +82,11 @@
         return;
     }
 
+    if (newPassword.Compare(currentPassword) == 0) {
+        EndDialog(IDCANCEL);
+        return;
+    }
+
 #ifdef UNICODE
     std::string strUsername = CStringA(username);
     std::string strCurrentPassword = CStringA(currentPassword);

--
Gitblit v1.9.3