Skip to content

Commit

Permalink
small restore
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-papazian committed Jan 24, 2025
1 parent b05361f commit be66632
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/appsec/_trace_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def _on_django_auth(result_user, mode, kwargs, pin, info_retriever, django_confi

if not result_user:
with pin.tracer.trace("django.contrib.auth.login", span_type=SpanTypes.AUTH):
exists = info_retriever.user_exists()
user_id_found, user_extra = info_retriever.get_user_info(
login=django_config.include_user_login,
email=django_config.include_user_email,
Expand All @@ -367,7 +368,6 @@ def _on_django_auth(result_user, mode, kwargs, pin, info_retriever, django_confi
if user_extra.get("login") is None:
user_extra["login"] = user_id
user_id = user_id_found or user_id
exists = info_retriever.user_exists()
track_user_login_failure_event(
pin.tracer, user_id=user_id, login_events_mode=mode, exists=exists, **user_extra
)
Expand Down
Binary file modified tests/appsec/contrib_appsec/db.sqlite3
Binary file not shown.

0 comments on commit be66632

Please sign in to comment.