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:
parent
99eb9c74f3
commit
4b86de3b62
4 changed files with 23 additions and 9 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue