| | |
| | | #include "BondEq.h" |
| | | #include "afxdialogex.h" |
| | | #include "LoginDlg.h" |
| | | #include "UserManager.h" |
| | | #include "ChangePasswordDlg.h" |
| | | |
| | | |
| | |
| | | #endif |
| | | |
| | | UserManager& userManager = UserManager::getInstance(); |
| | | SystemLogManager& logManager = SystemLogManager::getInstance(); |
| | | if (!userManager.login(strUsername, strPassword, (m_checkRememberPassword.GetCheck() == BST_CHECKED))) { |
| | | AfxMessageBox(_T("登录失败。")); |
| | | return; |
| | | } |
| | | |
| | | EndDialog(IDOK); |
| | | logManager.log(SystemLogManager::LogType::Info, _T("登录成功...")); |
| | | } |
| | | |
| | | void CLoginDlg::OnBnClickedChangePassword() |