mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-10 05:36:41 +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],
|
||||
});
|
||||
}
|
||||
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 {
|
||||
|
|
|
@ -192,7 +192,7 @@ pub async fn try_auth(
|
|||
)
|
||||
.await
|
||||
{
|
||||
| Ok(_) => {
|
||||
| Ok() => {
|
||||
uiaainfo.completed.push(AuthType::ReCaptcha);
|
||||
},
|
||||
| Err(e) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue