diff options
author | Sadie Powell <sadie@witchery.services> | 2020-09-11 15:45:26 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-09-28 15:28:26 +0100 |
commit | 8e0e1806a47e6fa78f884666b55c04edf11fd66c (patch) | |
tree | d1489041c56f995104b44047ff064afd65a890f9 /modules/encryption/enc_md5.cpp | |
parent | 7f39fb14f2d9963464165ae9112abe2e65bded8d (diff) |
Require a secure password hashing algorithm for new accounts.
Insecure algorithms can still be used for existing accounts.
Diffstat (limited to 'modules/encryption/enc_md5.cpp')
-rw-r--r-- | modules/encryption/enc_md5.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/encryption/enc_md5.cpp b/modules/encryption/enc_md5.cpp index 3a20204ca..a35f4c802 100644 --- a/modules/encryption/enc_md5.cpp +++ b/modules/encryption/enc_md5.cpp @@ -345,7 +345,8 @@ class EMD5 : public Module EMD5(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR), md5provider(this) { - + if (ModuleManager::FindFirstOf(ENCRYPTION) == this) + throw ModuleException("enc_md5 is deprecated and can not be used as a primary encryption method"); } EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_override |