mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-22 21:54:07 +00:00
Record password mismatch separately from errors
This commit is contained in:
1 parent
485a577677
commit
048acdb765
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user