mirror of
https://github.com/znc/znc.git
synced 2026-07-05 17:31:06 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user