feat(recaptcha): Fix linting issues

This commit is contained in:
nexy7574
2025-07-08 19:15:55 +01:00
parent 980774a275
commit f0994355d4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -305,7 +305,7 @@ pub(crate) async fn register_route(
stages: vec![AuthType::RegistrationToken],
});
}
if !services.config.recaptcha_private_site_key.is_none() {
if services.config.recaptcha_private_site_key.is_some() {
if let Some(pubkey) = &services.config.recaptcha_site_key {
// ReCaptcha required
uiaainfo
@@ -329,7 +329,7 @@ pub(crate) async fn register_route(
auth_error: None,
};
skip_auth = skip_auth || is_guest;
};
}
if !skip_auth {
match &body.auth {