1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 15:43:13 +02:00

Fix double lookups on accounts when authenticating.

This commit is contained in:
Sadie Powell
2025-11-09 11:38:51 +00:00
parent fb1014a53c
commit 8562445038
18 changed files with 43 additions and 65 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ public:
void OnCheckAuthentication(User *, IdentifyRequest *req) override
{
const auto *na = NickAlias::Find(req->GetAccount());
auto *na = NickAlias::Find(req->GetAccount());
if (!na)
return;
@@ -42,7 +42,7 @@ public:
// the password with the primary encryption method.
if (ModuleManager::FindFirstOf(ENCRYPTION) != this)
Anope::Encrypt(req->GetPassword(), nc->pass);
req->Success(this);
req->Success(this, na);
}
}
};