MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / getUserPasswd

Method getUserPasswd

Plugins/TigerVnc/Client/BackendVnc.cpp:689–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689void CBackendVnc::getUserPasswd(bool secure, std::string *user, std::string *password)
690{
691 if(password)
692 {
693 auto &user = m_pPara->m_Net.m_User;
694 *password = user.GetPassword().toStdString();
695 if(user.GetPassword().isEmpty())
696 {
697 int nRet = QDialog::Rejected;
698 auto *net = &m_pPara->m_Net;
699 emit sigBlockShowWidget("CDlgUserPassword", nRet, net);
700 if(QDialog::Accepted == nRet)
701 {
702 *password = user.GetPassword().toStdString();
703 }
704 }
705 if(!password->empty())
706 m_SecurityLevel |= CSecurityLevel::Level::Authentication;
707 }
708}
709
710int CBackendVnc::getX509File(std::string *ca, std::string *crl)
711{

Callers

nothing calls this directly

Calls 2

GetPasswordMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected