Ticket #440: use_uid_if_user_name_is_empty.patch

File use_uid_if_user_name_is_empty.patch, 0.8 kB (added by fthomas, 11 months ago)
  • clientgui/ProjectProcessingPage.cpp

    old new  
    399399                ai->email_addr = (const char*)pWAP->m_AccountInfoPage->GetAccountEmailAddress().mb_str(); 
    400400                ai->passwd = (const char*)pWAP->m_AccountInfoPage->GetAccountPassword().mb_str(); 
    401401                ai->user_name = (const char*)::wxGetUserName().mb_str(); 
     402                if (ai->user_name.empty()) { 
     403                    ai->user_name = (const char*)::wxGetUserId().mb_str(); 
     404                } 
    402405 
    403406                if (pWAP->m_AccountInfoPage->m_pAccountCreateCtrl->GetValue()) { 
    404407                    pDoc->rpc.create_account(*ai); 

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.