diff --git a/src/api/auth.rs b/src/api/auth.rs index f85cbaf..6abd0b2 100644 --- a/src/api/auth.rs +++ b/src/api/auth.rs @@ -332,7 +332,6 @@ pub async fn auth_basic_get( StatusCode::INTERNAL_SERVER_ERROR })?; - drop(database); return Ok(( StatusCode::OK, diff --git a/src/auth/ldap_driver.rs b/src/auth/ldap_driver.rs index 486dd26..a87da0f 100644 --- a/src/auth/ldap_driver.rs +++ b/src/auth/ldap_driver.rs @@ -100,7 +100,6 @@ impl AuthDriver for LdapAuthDriver { }; database.create_user(email.clone(), display_name, LoginSource::LDAP).await?; - drop(database); // Set the user registry type let user_type = match self.is_user_admin(email.clone()).await? {