mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:06:37 +02:00
Make the length of confirmation codes configurable.
This commit is contained in:
@@ -134,7 +134,7 @@ static bool SendResetEmail(User *u, const NickAlias *na, BotInfo *bi)
|
||||
{
|
||||
Anope::string subject = Language::Translate(na->nc, Config->GetBlock("mail").Get<const Anope::string>("reset_subject").c_str()),
|
||||
message = Language::Translate(na->nc, Config->GetBlock("mail").Get<const Anope::string>("reset_message").c_str()),
|
||||
passcode = Anope::Random(20);
|
||||
passcode = Anope::Random(Config->GetBlock("options").Get<size_t>("codelength", 15));
|
||||
|
||||
subject = subject.replace_all_cs("%n", na->nick);
|
||||
subject = subject.replace_all_cs("%N", Config->GetBlock("networkinfo").Get<const Anope::string>("networkname"));
|
||||
|
||||
Reference in New Issue
Block a user