From 4f6aae9fe017a37bd8bc6199ba4e3804036d8693 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 13 三月 2025 14:11:13 +0800
Subject: [PATCH] 1.增加EqModeChangeStep
---
SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp b/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp
index 7fe322e..3ac5196 100644
--- a/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp
+++ b/SourceCode/Bond/BondEq/View/ChangePasswordDlg.cpp
@@ -5,7 +5,6 @@
#include "BondEq.h"
#include "afxdialogex.h"
#include "ChangePasswordDlg.h"
-#include "UserManager.h"
// CChangePasswordDlg 瀵硅瘽妗�
@@ -82,6 +81,7 @@
return;
}
+ SystemLogManager& logManager = SystemLogManager::getInstance();
if (newPassword.Compare(currentPassword) == 0) {
EndDialog(IDCANCEL);
return;
@@ -101,12 +101,14 @@
if (userManager.isLoggedIn() && strCurrentPassword.compare(userManager.getCurrentPass()) == 0) {
if (changeUserPassword(userManager, strUsername, strNewPassword)) {
EndDialog(IDOK);
+ logManager.log(SystemLogManager::LogType::Info, "淇敼瀵嗙爜鎴愬姛锛�", strUsername);
}
}
else {
if (userManager.login(strUsername, strCurrentPassword)) {
if (changeUserPassword(userManager, strUsername, strNewPassword)) {
EndDialog(IDOK);
+ logManager.log(SystemLogManager::LogType::Info, "淇敼瀵嗙爜鎴愬姛锛�", strUsername);
}
else {
userManager.logout();
--
Gitblit v1.9.3