Skip to content

Commit

Permalink
[#4825] Log prefill retrieve empty only for the used authentication flow
Browse files Browse the repository at this point in the history
  • Loading branch information
vaszig committed Dec 19, 2024
1 parent e11c687 commit 4f3a53f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/openforms/prefill/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ def invoke_plugin(
if values:
logevent.prefill_retrieve_success(submission, plugin, fields)
else:
logevent.prefill_retrieve_empty(submission, plugin, fields)
if (
plugin.requires_auth is None
or (auth_info := getattr(submission, "auth_info", None))
and auth_info.attribute == plugin.requires_auth
):
logevent.prefill_retrieve_empty(submission, plugin, fields)
return fields, values

invoke_plugin_args = []
Expand Down

0 comments on commit 4f3a53f

Please sign in to comment.