mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Add the remote ip to the info CAuthBase got
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1112 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -21,10 +21,7 @@ class CWebAdminSock;
|
||||
|
||||
class CWebAdminAuth : public CAuthBase {
|
||||
public:
|
||||
CWebAdminAuth(CWebAdminSock* pWebAdminSock, const CString& sUsername, const CString& sPassword)
|
||||
: CAuthBase(sUsername, sPassword) {
|
||||
m_pWebAdminSock = pWebAdminSock;
|
||||
}
|
||||
CWebAdminAuth(CWebAdminSock* pWebAdminSock, const CString& sUsername, const CString& sPassword);
|
||||
|
||||
virtual ~CWebAdminAuth() {}
|
||||
|
||||
@@ -1162,6 +1159,12 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
|
||||
return pNewUser;
|
||||
}
|
||||
|
||||
CWebAdminAuth::CWebAdminAuth(CWebAdminSock* pWebAdminSock, const CString& sUsername,
|
||||
const CString& sPassword)
|
||||
: CAuthBase(sUsername, sPassword, pWebAdminSock->GetRemoteIP()) {
|
||||
m_pWebAdminSock = pWebAdminSock;
|
||||
}
|
||||
|
||||
void CWebAdminAuth::AcceptLogin(CUser& User) {
|
||||
if (m_pWebAdminSock) {
|
||||
m_pWebAdminSock->SetSessionUser(&User);
|
||||
|
||||
Reference in New Issue
Block a user