Captcha error silence
This commit is contained in:
parent
cc712a0e99
commit
f7a8069859
3 changed files with 10 additions and 8 deletions
|
@ -84,13 +84,14 @@ pub struct CaptchaResponse {
|
|||
}
|
||||
|
||||
/// Request a captcha from the captcha service
|
||||
#[allow(unreachable_code, unused_variables)]
|
||||
#[post("/captcha")]
|
||||
pub async fn captcha_request(cstate: Data<CaptchaState>) -> Result<impl Responder> {
|
||||
unimplemented!("Captcha is currently disabled");
|
||||
return Ok(HttpResponse::InternalServerError().json("Error"));
|
||||
|
||||
// This might block the thread a bit too long
|
||||
// let (answer, svg) = get_captcha();
|
||||
let (answer, svg) = get_captcha();
|
||||
|
||||
// let id = rand_core::OsRng.next_u32() as i32;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue