|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | xnode   m_agentNode;   //Agent Condition | 
|---|
|  |  |  |  | 
|---|
|  |  |  | static xstring MD5(xstring) native from "XUtil.dll" alias "?MD5@IXFUtil@XFrame@Hxsoft@@SAPA_WPA_W@Z"; | 
|---|
|  |  |  | public: | 
|---|
|  |  |  | UserPassDlg(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} | 
|---|
|  |  |  | public: | 
|---|
|  |  |  | 
|---|
|  |  |  | if(xcontrol(GetControl(L"old_pass")).GetText()==L"") | 
|---|
|  |  |  | { | 
|---|
|  |  |  | alert(L"请输入旧口令!"); | 
|---|
|  |  |  | SetFocus(xcontrol(GetControl(L"old_pass")).GetId()); | 
|---|
|  |  |  | SetFocus(GetControl(L"old_pass")->GetHWND()); | 
|---|
|  |  |  | return 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | if(str1 != str2) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | alert(L"两遍新口令不一致!"); | 
|---|
|  |  |  | SetFocus(xcontrol(GetControl(L"new_pass1")).GetId()); | 
|---|
|  |  |  | SetFocus(GetControl(L"new_pass1")->GetHWND()); | 
|---|
|  |  |  | return 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | xstring oldpass = MD5(ostr); | 
|---|
|  |  |  | xstring newpass = MD5(str1); | 
|---|
|  |  |  | xstring oldpass = xutil::MD5(ostr); | 
|---|
|  |  |  | xstring newpass = xutil::MD5(str1); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | xml x; | 
|---|
|  |  |  |  | 
|---|