1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 08:56:39 +02:00

Reject registrations and password changes if password encryption fails.

This commit is contained in:
Sadie Powell
2024-03-11 19:37:11 +00:00
parent 6ad3430ac4
commit 02355546ff
5 changed files with 31 additions and 11 deletions
+2 -2
View File
@@ -494,11 +494,11 @@ bool Anope::Match(const Anope::string &str, const Anope::string &mask, bool case
return m == mask_len;
}
void Anope::Encrypt(const Anope::string &src, Anope::string &dest)
bool Anope::Encrypt(const Anope::string &src, Anope::string &dest)
{
EventReturn MOD_RESULT;
FOREACH_RESULT(OnEncrypt, MOD_RESULT, (src, dest));
static_cast<void>(MOD_RESULT);
return MOD_RESULT == EVENT_ALLOW &&!dest.empty();
}
Anope::string Anope::printf(const char *fmt, ...)