diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-10 19:46:26 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-10 20:46:03 +0000 |
| commit | 9a984a814810306f2ca2690a0c8c25bcb1e87258 (patch) | |
| tree | 5d4196b6049288a34d66624a6ae215d0e6ff4545 /modules/encryption/enc_sha256.cpp | |
| parent | fb9c8950ed0fea4c981e2ea7301f5f969296a116 (diff) | |
Implement verify-only support for raw SHA-2 passwords.
Diffstat (limited to 'modules/encryption/enc_sha256.cpp')
| -rw-r--r-- | modules/encryption/enc_sha256.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/encryption/enc_sha256.cpp b/modules/encryption/enc_sha256.cpp index c9c3187e0..1377cfcb6 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -103,7 +103,7 @@ public: /* if we are NOT the first module in the list or we are using a default IV * we want to re-encrypt the pass with the new encryption */ - if (ModuleManager::FindFirstOf(ENCRYPTION) != this || !memcmp(iv, sha256_h0, 8)) + if (ModuleManager::FindFirstOf(ENCRYPTION) != this) Anope::Encrypt(req->GetPassword(), nc->pass); req->Success(this); } |
