feat(recaptcha): Fix linting issues

This commit is contained in:
nexy7574 2025-07-08 19:15:55 +01:00
parent 980774a275
commit f0994355d4
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F
2 changed files with 3 additions and 3 deletions

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 {

View file

@ -192,7 +192,7 @@ pub async fn try_auth(
)
.await
{
| Ok(_) => {
| Ok() => {
uiaainfo.completed.push(AuthType::ReCaptcha);
},
| Err(e) => {