Skip to content

Commit 048acdb

Browse files
committed
Record password mismatch separately from errors
1 parent 485a577 commit 048acdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/handlers/src/views/login.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ pub(crate) async fn post(
276276
Ok(PasswordVerificationResult::Failure) => {
277277
tracing::warn!("Failed to verify/upgrade password for user: {user}");
278278
let form_state = form_state.with_error_on_form(FormError::InvalidCredentials);
279-
PASSWORD_LOGIN_COUNTER.add(1, &[KeyValue::new(RESULT, "error")]);
279+
PASSWORD_LOGIN_COUNTER.add(1, &[KeyValue::new(RESULT, "mismatch")]);
280280
return render(
281281
locale,
282282
cookie_jar,

0 commit comments

Comments
 (0)