mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
fix: Use the right error code for CAPTCHA errors
This commit is contained in:
1 file changed
+1
-1
@@ -556,7 +556,7 @@ impl Service {
|
|||||||
| Err(e) => {
|
| Err(e) => {
|
||||||
error!("ReCaptcha verification failed: {e:?}");
|
error!("ReCaptcha verification failed: {e:?}");
|
||||||
Err(StandardErrorBody::new(
|
Err(StandardErrorBody::new(
|
||||||
ErrorKind::Forbidden,
|
ErrorKind::CaptchaInvalid,
|
||||||
"ReCaptcha verification failed".to_owned(),
|
"ReCaptcha verification failed".to_owned(),
|
||||||
))
|
))
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user