1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 18:53:12 +02:00

Make the length of confirmation codes configurable.

This commit is contained in:
Sadie Powell
2025-04-07 12:27:45 +01:00
parent e1224ac486
commit 40d558ef21
6 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -520,7 +520,7 @@ class CommandNSSetEmail
{
static bool SendConfirmMail(User *u, NickCore *nc, BotInfo *bi, const Anope::string &new_email)
{
Anope::string code = Anope::Random(15);
Anope::string code = Anope::Random(Config->GetBlock("options").Get<size_t>("codelength", 15));
std::pair<Anope::string, Anope::string> *n = nc->Extend<std::pair<Anope::string, Anope::string> >("ns_set_email");
n->first = new_email;