summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-11 21:07:39 +0000
committerSadie Powell <sadie@witchery.services>2024-03-11 21:07:39 +0000
commit7c1cfd2849381bb74b60499d10668533981a9127 (patch)
treea9654cd545c501057d57e64edd4bb2cd1c609da5 /modules
parent259b10b83af2b710b5fde90d436bec27a476b0cb (diff)
Fix comparing passwords in enc_sha256.
Diffstat (limited to 'modules')
-rw-r--r--modules/encryption/enc_sha256.cpp2
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: