From 048acdb7655a98e7ca83496d6aea25911fc85f79 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 16 Jun 2025 14:13:51 +0100 Subject: [PATCH] Record password mismatch separately from errors --- crates/handlers/src/views/login.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/handlers/src/views/login.rs b/crates/handlers/src/views/login.rs index 2318fc3f8..d5bad6f37 100644 --- a/crates/handlers/src/views/login.rs +++ b/crates/handlers/src/views/login.rs @@ -276,7 +276,7 @@ pub(crate) async fn post( Ok(PasswordVerificationResult::Failure) => { tracing::warn!("Failed to verify/upgrade password for user: {user}"); let form_state = form_state.with_error_on_form(FormError::InvalidCredentials); - PASSWORD_LOGIN_COUNTER.add(1, &[KeyValue::new(RESULT, "error")]); + PASSWORD_LOGIN_COUNTER.add(1, &[KeyValue::new(RESULT, "mismatch")]); return render( locale, cookie_jar,