registration: add a Hold verdict so captcha/challenge modules pend the client for the challenge instead of tearing the link down

This commit is contained in:
Jean Chevronnet 2026-08-17 19:06:17 +00:00
parent 99eb9c74f3
commit 4b86de3b62
4 changed files with 23 additions and 9 deletions

View file

@ -93,7 +93,8 @@ impl Module for CloudflareChallenge {
let msg = template.replace("{url}", &link);
srv.send(uid, format!(":{} NOTICE {nick} :{msg}", srv.name));
}
ModResult::Deny
// Hold the connection for the challenge (VERIFYCHALLENGE <token>), don't drop it.
ModResult::Hold
}
}

View file

@ -103,7 +103,8 @@ impl Module for ReCaptcha {
let msg = template.replace("{url}", &link);
srv.send(uid, format!(":{} NOTICE {nick} :{msg}", srv.name));
}
ModResult::Deny
// Hold the connection for the challenge (CAPTCHA <token>), don't tear it down.
ModResult::Hold
}
}