Clippy fixes, crate and web-vault updates (#7920)

This commit is contained in:
Mathijs van Veluw authored and GitHub committed 2026-11-01 18:59:00 +01:00
1 parent 79ee29d501
commit 5d870b796f
7 files changed
+512 -175

No files matched your search

+5 -6
View File
@@ -2907,12 +2907,11 @@ async fn recover_account(
err!("Organization user must be confirmed for password reset functionality");
}
let fallback_2fa_email =
if req.reset_two_factor && CONFIG.mail_enabled() && CONFIG.email_2fa_auto_fallback() && user.verified() {
TwoFactor::find_by_user_and_type(&user.uuid, TwoFactorType::Email, &conn).await.is_none()
} else {
false
};
let fallback_2fa_email = req.reset_two_factor
&& CONFIG.mail_enabled()
&& CONFIG.email_2fa_auto_fallback()
&& user.verified()
&& TwoFactor::find_by_user_and_type(&user.uuid, TwoFactorType::Email, &conn).await.is_none();
// Check the new password before the email below, so that a rejected request doesn't tell the user
// their password was reset
+1 -1
View File
@@ -260,7 +260,7 @@ impl Client {
};
if CONFIG.sso_debug_tokens() {
debug!("Id token: {}", id_token.to_string());
debug!("Id token: {id_token}");
debug!("Access token: {}", token_response.access_token().secret());
debug!("Refresh token: {:?}", token_response.refresh_token().map(RefreshToken::secret));
debug!("Expiration time: {:?}", token_response.expires_in());