mirror of
https://github.com/znc/znc.git
synced 2026-05-02 11:32:29 +02:00
Removed admin user that was passed via arguments
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@559 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -124,13 +124,6 @@ public:
|
||||
}
|
||||
|
||||
m_uPort = sPort.ToUInt();
|
||||
m_sUser = sArgs.Token(1);
|
||||
m_sPass = sArgs.Token(2);
|
||||
|
||||
if (m_sPass.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CWebAdminSock* pListenSock = new CWebAdminSock(this);
|
||||
|
||||
#ifdef HAVE_LIBSSL
|
||||
@@ -150,12 +143,8 @@ public:
|
||||
m_sSocks.erase(pSock);
|
||||
}
|
||||
|
||||
const CString& GetUser() const { return m_sUser; }
|
||||
const CString& GetPass() const { return m_sPass; }
|
||||
private:
|
||||
unsigned int m_uPort;
|
||||
CString m_sUser;
|
||||
CString m_sPass;
|
||||
set<CWebAdminSock*> m_sSocks;
|
||||
};
|
||||
|
||||
@@ -191,11 +180,6 @@ CString CWebAdminSock::Footer() {
|
||||
}
|
||||
|
||||
bool CWebAdminSock::OnLogin(const CString& sUser, const CString& sPass) {
|
||||
if (GetUser() == m_pModule->GetUser() && GetPass() == m_pModule->GetPass()) {
|
||||
m_bAdmin = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
CUser* pUser = CZNC::Get().FindUser(GetUser());
|
||||
|
||||
if (pUser) {
|
||||
|
||||
Reference in New Issue
Block a user