1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 12:03:14 +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
@@ -129,7 +129,7 @@ public:
void OnCheckAuthentication(User *, IdentifyRequest *req) override
{
const auto *na = NickAlias::Find(req->GetAccount());
auto *na = NickAlias::Find(req->GetAccount());
if (!na)
return;
@@ -161,7 +161,7 @@ public:
// encryption method.
if (ModuleManager::FindFirstOf(ENCRYPTION) != this || (rounds && rounds != BCryptContext::rounds))
Anope::Encrypt(req->GetPassword(), nc->pass);
req->Success(this);
req->Success(this, na);
}
}