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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user