diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-11 21:07:39 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-11 21:07:39 +0000 |
| commit | 7c1cfd2849381bb74b60499d10668533981a9127 (patch) | |
| tree | a9654cd545c501057d57e64edd4bb2cd1c609da5 /modules/encryption | |
| parent | 259b10b83af2b710b5fde90d436bec27a476b0cb (diff) | |
Fix comparing passwords in enc_sha256.
Diffstat (limited to 'modules/encryption')
| -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 a106c1bc4..f1639cf4f 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -64,7 +64,7 @@ private: sha256_final(&ctx, digest); Anope::string hash(reinterpret_cast<const char *>(&digest), sizeof(digest)); - return Anope::Hex(hash) + ":" + GetIVString(); + return "sha256:" + Anope::Hex(hash) + ":" + GetIVString(); } public: |
