mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-10 12:46:42 +02:00
feat(recaptcha): Fix linting issues
This commit is contained in:
parent
980774a275
commit
f0994355d4
2 changed files with 3 additions and 3 deletions
|
@ -305,7 +305,7 @@ pub(crate) async fn register_route(
|
||||||
stages: vec![AuthType::RegistrationToken],
|
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 {
|
if let Some(pubkey) = &services.config.recaptcha_site_key {
|
||||||
// ReCaptcha required
|
// ReCaptcha required
|
||||||
uiaainfo
|
uiaainfo
|
||||||
|
@ -329,7 +329,7 @@ pub(crate) async fn register_route(
|
||||||
auth_error: None,
|
auth_error: None,
|
||||||
};
|
};
|
||||||
skip_auth = skip_auth || is_guest;
|
skip_auth = skip_auth || is_guest;
|
||||||
};
|
}
|
||||||
|
|
||||||
if !skip_auth {
|
if !skip_auth {
|
||||||
match &body.auth {
|
match &body.auth {
|
||||||
|
|
|
@ -192,7 +192,7 @@ pub async fn try_auth(
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
| Ok(_) => {
|
| Ok() => {
|
||||||
uiaainfo.completed.push(AuthType::ReCaptcha);
|
uiaainfo.completed.push(AuthType::ReCaptcha);
|
||||||
},
|
},
|
||||||
| Err(e) => {
|
| Err(e) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue