Ignore:
Timestamp:
12/09/15 06:47:21 (8 years ago)
Author:
cheese
Message:
  1. 클라이언트 UI ID/PW 입력 안하면 죽는 문제 수정
  2. UI 종료 함수 exit로 수정
  3. 그룹챗 인덱스 변수 형 때문에 나오는 warning 수정
  4. toOpenSession 함수 가끔 죽는 문제 수정
  5. generateRandom()에서 time()하던거 rand()로 수정
  6. sms 전송 url 및 sms 코드 생성 로직 대폭 수정 (주석 참고)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/msvc14/ChevMsgrClient_MFC/LoginDlg.cpp

    r31 r33  
    5959
    6060    GetDlgItemText(IDC_EDIT_LOGIN_ID, id);
     61    if (id == _T(""))
     62    {
     63        AfxMessageBox(_T("No ID"));
     64        return;
     65    }
     66
    6167    std::string name = cf::codec::hex::getInstance()->encode(c.sha256(cf::bin(cstr2str(id))));
    6268    std::ifstream f(name);
     
    7076
    7177    GetDlgItemText(IDC_EDIT_LOGIN_PW, pw);
     78    if (pw == _T(""))
     79    {
     80        AfxMessageBox(_T("No Password"));
     81        return;
     82    }
     83
    7284    f >> str;
    7385
Note: See TracChangeset for help on using the changeset viewer.