Send a code to an email searched in a list

I would like to send a unique code to an email address that is part of a list, before the user is logged in. It is a security feature requested by the client.

I seted all up in the workflow and it was working fine, but now when I run the action it doesn’t generate the code anymore. It seems like it doesn’t find the item in the list, but I haven’t changed anything.

Here is a screenshot of the workflow.

What am i missing here?
Thanks for your help.