Always notify the user when someone else tried to login but was rejected

Before this, you only got a message from *status when someone tried to login
with a bad password and no auth module (imapauth/saslauth) was loaded.
With this patch every failed login will generate a message.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1415 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-03-07 12:37:38 +00:00
parent f52f4b2746
commit 0015098ab3
2 changed files with 10 additions and 4 deletions
-4
View File
@@ -1750,10 +1750,6 @@ void CZNC::AuthUser(CSmartPtr<CAuthBase> AuthClass) {
CUser* pUser = GetUser(AuthClass->GetUsername());
if (!pUser || !pUser->CheckPass(AuthClass->GetPassword())) {
if (pUser) {
pUser->PutStatus("Another client attempted to login as you, with a bad password.");
}
AuthClass->RefuseLogin("Invalid Password");
return;
}