diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-19 22:29:17 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-19 22:31:07 +0000 |
commit | 1fb77e414db20d9c7dd5bd4bf0690733bd90fb30 (patch) | |
tree | 27c72258e632150b28469808b846b54e001ada9b | |
parent | 22fe5bb724db05dd96fb51eed27e76feaf8dcef6 (diff) |
Increase the size of the random codes in ns_register and ns_set.
-rw-r--r-- | modules/nickserv/ns_register.cpp | 2 | ||||
-rw-r--r-- | modules/nickserv/ns_set.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/nickserv/ns_register.cpp b/modules/nickserv/ns_register.cpp index d1987a163..614901e0b 100644 --- a/modules/nickserv/ns_register.cpp +++ b/modules/nickserv/ns_register.cpp @@ -425,7 +425,7 @@ static bool SendRegmail(User *u, const NickAlias *na, BotInfo *bi) if (code == NULL) { code = na->nc->Extend<Anope::string>("passcode"); - *code = Anope::Random(9); + *code = Anope::Random(15); } Anope::string subject = Language::Translate(na->nc, Config->GetBlock("mail")->Get<const Anope::string>("registration_subject").c_str()), diff --git a/modules/nickserv/ns_set.cpp b/modules/nickserv/ns_set.cpp index 016edde18..7604cd0f3 100644 --- a/modules/nickserv/ns_set.cpp +++ b/modules/nickserv/ns_set.cpp @@ -513,7 +513,7 @@ class CommandNSSetEmail { static bool SendConfirmMail(User *u, NickCore *nc, BotInfo *bi, const Anope::string &new_email) { - Anope::string code = Anope::Random(9); + Anope::string code = Anope::Random(15); std::pair<Anope::string, Anope::string> *n = nc->Extend<std::pair<Anope::string, Anope::string> >("ns_set_email"); n->first = new_email; |